[PATCH] x86: Disallow GOT memory as vector memory operand

H.J. Lu hjl.tools@gmail.com
Tue Feb 4 22:19:28 GMT 2025
GOT memory is 4-byte for i386 and 8-byte for x86-64.  Disallow GOT memory
as vector memory operand.

PR gas/32624
* config/tc-i386.c (output_disp): Disallow GOT memory as vector
memory operand.
* testsuite/gas/i386/i386.exp: Run inval-got.
* testsuite/gas/i386/inval-got.l: New file.
* testsuite/gas/i386/inval-got.s: Likewise.
* testsuite/gas/i386/x86-64-inval-got.l: Likewise.
* testsuite/gas/i386/x86-64-inval-got.l: Likewise.
* testsuite/gas/i386/x86-64.exp: Run x86-64-inval-got.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Disallow-GOT-memory-as-vector-memory-operand.patch
Type: text/x-patch
Size: 4981 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250205/42244866/attachment.bin>


More information about the Binutils mailing list