Add support for secidx relocations to aarch64-w64-mingw32
authorMark Harmstone <mark@harmstone.com>
Mon, 23 Jan 2023 00:26:07 +0000 (00:26 +0000)
committerMark Harmstone <mark@harmstone.com>
Mon, 23 Jan 2023 20:07:30 +0000 (20:07 +0000)
commit6f4a117fe1ea8f5722ff9fd4db9a1ecc8bd26b84
tree78fcfec080ae889c1550dc039b372c2ae568b7b7
parent29e09a42f1d1af3d97652e54b6b3cac68cf61d15
Add support for secidx relocations to aarch64-w64-mingw32

This patch adds support for the .secidx directive and its corresponding
relocation to aarch64-w64-mingw32. As with x86, this is a two-byte LE
integer which gets filled in with the 1-based index of the output
section that a symbol ends up in.

This is needed for PDBs, which represent addresses as a .secrel32,
.secidx pair.

The test is substantially the same as for amd64, but with changes made
for padding and alignment.
bfd/coff-aarch64.c
gas/config/tc-aarch64.c
ld/testsuite/ld-pe/pe.exp
ld/testsuite/ld-pe/secidx_aarch64.d [new file with mode: 0644]