This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RFC: Use nop instead of data16 on x86-64
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Tue, 3 Apr 2007 20:40:27 -0700
- Subject: RFC: Use nop instead of data16 on x86-64
elf64-x86-64.c uses data16 to remove instructions for TLS. For
example,
/* LD->LE transition:
Ensure it is:
leaq foo@tlsld(%rip), %rdi; call __tls_get_addr@plt.
We change it into:
.word 0x6666; .byte 0x66; movl %fs:0, %rax. */
I'd like to turn those data16 to proper single instuction nop. The
above will becomes
nopl 0(%rax); movl %fs:0, %rax
Any comments?
H.J.