[PATCH] x86: Disable GOT relaxation with data prefix

H.J. Lu hjl.tools@gmail.com
Tue Nov 6 17:23:00 GMT 2018


On Mon, Nov 5, 2018 at 7:46 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> Since linker GOT relaxation isn't valid for 16-bit GOT access, we should
> disable GOT relaxation with data prefix.
>
> gas/
>
>         PR gas/r23854
>         * config/tc-i386.c (output_disp): Disable GOT relaxation with
>         data prefix.
>         * testsuite/gas/i386/mixed-mode-reloc32.d: Updated.
>
> ld/
>
>         PR gas/r23854
>         * testsuite/ld-i386/i386.exp: Run pr23854.
>         * testsuite/ld-x86-64/x86-64.exp: Likewwise.
>         * testsuite/ld-i386/pr23854.d: New file.
>         * testsuite/ld-i386/pr23854.s: Likewwise.
>         * testsuite/ld-i386/pr23854.d: Likewwise.
>         * testsuite/ld-x86-64/pr23854.d: Likewwise.
>         * testsuite/ld-x86-64/pr23854.s: Likewwise.

I am bakporting this to 2.31 branch.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Disable-GOT-relaxation-with-data-prefix.patch
Type: text/x-patch
Size: 10632 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20181106/addd589e/attachment.bin>


More information about the Binutils mailing list