[committed, PATCH] PR ld/20117: Don't convert R_386_GOT32 relocation

H.J. Lu hjl.tools@gmail.com
Fri May 20 16:45:00 GMT 2016


On Thu, May 19, 2016 at 12:58 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> 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.
>
> Checked into master.  Will backport it to 2.26 branch.
>
>
> H.J.
> --
> 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.


This is what I checked into 2.26 branch.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-convert-R_386_GOT32-relocation.patch
Type: text/x-patch
Size: 6199 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20160520/de7c547a/attachment.bin>


More information about the Binutils mailing list