]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86/APX: widen @gotpcrel and @gottpoff support (incl to MOVRS)
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Jan 2025 09:26:02 +0000 (10:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Jan 2025 09:26:02 +0000 (10:26 +0100)
commit6a7a2387ade0223358bebe1cd3103a286897b241
treeb46e829530e0c1deb0f71a1a43ab102ecb367ecf
parentf238781aa11ab50396c369c81714b801e106c34c
x86/APX: widen @gotpcrel and @gottpoff support (incl to MOVRS)

If legacy-encoded arithmetic insns are eligible for @gotpcrel
relaxation, EVEX-encoded ones ought to be, too.

Further anything that MOV-from-memory can be used for (and transformed
from) should then also extend to MOVRS.

While extending the apx-load* testcases add  -mrelax-relocations=yes to
the two ones which were missing this: Without this option the intended
testing would not occur on configurations defaulting the option to off.
18 files changed:
bfd/elf64-x86-64.c
bfd/elfxx-x86.c
bfd/elfxx-x86.h
gas/config/tc-i386.c
gas/config/tc-i386.h
ld/testsuite/ld-x86-64/apx-load1.s
ld/testsuite/ld-x86-64/apx-load1a.d
ld/testsuite/ld-x86-64/apx-load1b.d
ld/testsuite/ld-x86-64/apx-load1c.d
ld/testsuite/ld-x86-64/apx-load1d.d
ld/testsuite/ld-x86-64/load3.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/load3a.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/load3b.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/tlsbindesc.dd
ld/testsuite/ld-x86-64/tlsbindesc.rd
ld/testsuite/ld-x86-64/tlsbindesc.s
ld/testsuite/ld-x86-64/tlsie5.d
ld/testsuite/ld-x86-64/x86-64.exp