aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-02-15 11:39:30 -0800
committerH.J. Lu <hjl.tools@gmail.com>2017-02-15 11:39:48 -0800
commit2a5684011edabf5804abb9e11253a9747587b284 (patch)
tree8ed51e47a385a573a949b36a10451b8fd89ef080 /bfd/ChangeLog
parenta5def14f1ca70e14d9433cb229c9369fa3051598 (diff)
downloadgdb-2a5684011edabf5804abb9e11253a9747587b284.zip
gdb-2a5684011edabf5804abb9e11253a9747587b284.tar.gz
gdb-2a5684011edabf5804abb9e11253a9747587b284.tar.bz2
i386: Allow "lea foo@GOT, %reg" in PIC
"lea foo@GOT, %reg" is OK in PIC since it only loads the GOT offset into register, which can be used later with a GOT base register to get the value in the GOT entry. bfd/ PR ld/21168 * elf32-i386.c (elf_i386_relocate_section): Allow "lea foo@GOT, %reg" in PIC. ld/ PR ld/21168 * testsuite/ld-i386/i386.exp: Run pr21168. * testsuite/ld-i386/pr21168a.c: New file. * testsuite/ld-i386/pr21168b.S: Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index cbea9a9..789915c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
+ PR ld/21168
+ * elf32-i386.c (elf_i386_relocate_section): Allow
+ "lea foo@GOT, %reg" in PIC.
+
+2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
+
PR ld/20244
* elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
symbol name when reporting R_386_GOT32/R_386_GOT32X relocation