diff options
author | Clément Chigot <clement.chigot@atos.net> | 2021-06-14 13:25:42 +0200 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-06-17 15:38:09 +0930 |
commit | 3478a63d7ed68d666f842f5b8fb5bdade619c817 (patch) | |
tree | 59f2f76c4cab5ff09636525e9ac3485d17ce9d15 /gas/bignum.h | |
parent | 7993124ee29271697870824c3a626babc7d5ab85 (diff) | |
download | binutils-3478a63d7ed68d666f842f5b8fb5bdade619c817.zip binutils-3478a63d7ed68d666f842f5b8fb5bdade619c817.tar.gz binutils-3478a63d7ed68d666f842f5b8fb5bdade619c817.tar.bz2 |
gas: ensure sections contents is zero for BFD_RELOC_PPC*_TLSM on XCOFF.
AIX ld expects the section contents for relocations BFD_RELOC_PPC_TLSM
or BFD_RELOC_PPC64_TLSM to be zero.
Actually, it seems to be the case for all the TLS relocations
generated by AIX assembly but only these two are mandatory.
* config/tc-ppc.c (md_apply_fix): Adjust addend to nullify
section contents for BFD_RELOC_PPC_TLSM or
BFD_RELOC_PPC64_TLSM.
* testsuite/gas/ppc/xcoff-tlsm-32.d: New test.
* testsuite/gas/ppc/xcoff-tlsm-64.d: New test.
* testsuite/gas/ppc/xcoff-tlsm.s: New test.
* testsuite/gas/ppc/aix.exp: Run new tests.
Diffstat (limited to 'gas/bignum.h')
0 files changed, 0 insertions, 0 deletions