]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86/COFF: support section-index relocations in insn operands
authorJan Beulich <jbeulich@suse.com>
Mon, 2 Dec 2024 08:38:15 +0000 (09:38 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 2 Dec 2024 08:38:15 +0000 (09:38 +0100)
commit64aafe3e86cb5575173344bb66a242d15e2271ee
treeaa883494ba21f84bd030e80555e2cb560ab6f201
parent8cd1d971e71b67767dfe21b53489c59749bfba8c
x86/COFF: support section-index relocations in insn operands

On the grounds of the principle put down near the bottom of [1], along
with image and section relative operations, let's also support as insn
operands what .secidx is for on the data side (of course like elsewhere
the reloc operator can then also be used for data generation, albeit a
small tweak to x86_cons() is needed for this to work).

[1] https://sourceware.org/pipermail/binutils/2024-November/137617.html
gas/config/tc-i386.c
gas/testsuite/gas/i386/secidx.d
gas/testsuite/gas/i386/secidx.s
gas/testsuite/gas/i386/x86-64-secidx.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-secidx.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64.exp