Optimize x86 GOT32X/GOTPCRELX relocations
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index a2e5f1edb3290ab7d31b23b4065de96814ef2bbc..0b52c17463ef1bed89348b1b69c0475b89fd1441 100644 (file)
@@ -1,3 +1,18 @@
+2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/19609
+       * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
+       load with locally bound symbols if PIC is false or there is no
+       base register.  Optimize branch to 0 if PIC is false.
+       (elf_i386_relocate_section): Don't generate dynamic relocations
+       against undefined weak symbols if PIC is false.
+       * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
+       if we can't estimate relocation overflow with --no-relax.
+       Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
+       symbols if PIC is false.  Optimize branch to 0 if PIC is false.
+       (elf_x86_64_relocate_section): Don't generate dynamic relocations
+       against undefined weak symbols if PIC is false.
+
 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/19645
This page took 0.024571 seconds and 4 git commands to generate.