diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-08-31 20:41:41 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-08-31 20:41:41 +0000 |
commit | daa67607072dd28275d2a54d6fba1623094905e8 (patch) | |
tree | 2bbe90dd3eb861e98df4643fb5b48db2b222f0da /bfd/ChangeLog | |
parent | b192990071091aa44c292fc8c3cd6d1ae4ee8327 (diff) | |
download | gdb-daa67607072dd28275d2a54d6fba1623094905e8.zip gdb-daa67607072dd28275d2a54d6fba1623094905e8.tar.gz gdb-daa67607072dd28275d2a54d6fba1623094905e8.tar.bz2 |
Convert mov to lea in size_dynamic_sections
bfd/
* elf32-i386.c (elf_i386_convert_mov_to_lea): New.
(elf_i386_size_dynamic_sections): Use it on input sections.
(elf_i386_relocate_section): Don't convert
"mov foo@GOT(%reg), %reg" to "lea foo@GOTOFF(%reg), %reg"
for local symbols here.
* elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): New.
(elf_x86_64_size_dynamic_sections): Use it on input sections.
(elf_x86_64_relocate_section): Don't convert
"mov foo@GOTPCREL(%rip), %reg" to "lea foo@GOTOFF(%reg), %reg"
for local symbols.
ld/testsuite/
* ld-i386/i386.exp: Run lea1d, lea1f, lea1f.
* ld-x86-64/x86-64.exp: Run lea1g, lea1h, lea1i, lea1j, lea1k,
lea1l.
* ld-ifunc/ifunc-13-i386.d: Remove R_386_RELATIVE entry.
* ld-i386/lea1d.d: New file.
* ld-i386/lea1e.d: Likewise.
* ld-i386/lea1f.d: Likewise.
* ld-x86-64/lea1g.d: Likewise.
* ld-x86-64/lea1h.d: Likewise.
* ld-x86-64/lea1i.d: Likewise.
* ld-x86-64/lea1j.d: Likewise.
* ld-x86-64/lea1k.d: Likewise.
* ld-x86-64/lea1l.d: Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c6f424a..71933e6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,17 @@ +2012-08-31 H.J. Lu <hongjiu.lu@intel.com> + + * elf32-i386.c (elf_i386_convert_mov_to_lea): New. + (elf_i386_size_dynamic_sections): Use it on input sections. + (elf_i386_relocate_section): Don't convert + "mov foo@GOT(%reg), %reg" to "lea foo@GOTOFF(%reg), %reg" + for local symbols here. + + * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): New. + (elf_x86_64_size_dynamic_sections): Use it on input sections. + (elf_x86_64_relocate_section): Don't convert + "mov foo@GOTPCREL(%rip), %reg" to "lea foo(%rip), %reg" + for local symbols here. + 2012-08-30 H.J. Lu <hongjiu.lu@intel.com> * elf32-i386.c (elf_i386_relocate_section): Convert |