Don't convert R_386_GOT32 relocation
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 19 May 2016 19:56:55 +0000 (12:56 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 19 May 2016 19:57:11 +0000 (12:57 -0700)
commit7d4d970973c4735dcdd2a69d645309f167a1d9d4
treee6a8b48b253a6d764479dee2757ae1c0a1752c67
parent606851fbf66c4a9e47c958014579dd363a74ba76
Don't convert R_386_GOT32 relocation

Don't convert R_386_GOT32 since we can't tell if it is applied
to "mov $foo@GOT, %reg" which isn't a load via GOT.

bfd/

PR ld/20117
* elf32-i386.c (elf_i386_convert_load_reloc): Don't check
R_386_GOT32X.
(elf_i386_convert_load): Don't convert R_386_GOT32.

ld/

PR ld/20117
* testsuite/ld-i386/i386.exp: Run pr20117.
* testsuite/ld-i386/pr19609-1i.d: Updated.
* testsuite/ld-i386/pr20117.d: New file.
* testsuite/ld-i386/pr20117.s: Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr19609-1i.d
ld/testsuite/ld-i386/pr20117.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr20117.s [new file with mode: 0644]