[PATCH] i386: Issue an error for baseless @GOT relocation with relaxation
H.J. Lu
hjl.tools@gmail.com
Sat Oct 25 22:28:40 GMT 2025
When -mrelax-relocations=no is used, don't generate baseless R_386_GOT32X
relocation. Issue an error instead.
PR gas/33552
* config/tc-i386.c (output_disp): Issue an error for baseless @GOT
relocation without relaxation in 32-bit.
* testsuite/gas/i386/got-no-relax-error.l: New file.
* testsuite/gas/i386/got-no-relax-error.s: Likewise.
* testsuite/gas/i386/got-no-relax.d: Don't use got.s. Remove
R_386_GOT32X entries.
* testsuite/gas/i386/i386.exp: Run got-no-relax-error.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-i386-Issue-an-error-for-baseless-GOT-relocation-with.patch
Type: text/x-patch
Size: 10388 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20251026/e53498a7/attachment.bin>
More information about the Binutils
mailing list