diff options
author | Lulu Cai <cailulu@loongson.cn> | 2024-10-17 15:08:47 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-10-22 12:01:41 +0800 |
commit | 3790b9f7ff23857e44b58d4b710b1f014d956ef3 (patch) | |
tree | c4b4e813964b80d64ed31f6f0d2b371f614bb109 /libbacktrace/posix.c | |
parent | 4806ed93bc8de3b84d4380900e110c1b7fc7104f (diff) | |
download | gdb-3790b9f7ff23857e44b58d4b710b1f014d956ef3.zip gdb-3790b9f7ff23857e44b58d4b710b1f014d956ef3.tar.gz gdb-3790b9f7ff23857e44b58d4b710b1f014d956ef3.tar.bz2 |
LoongArch: Force relocation for every reference to the global offset table
Local absolute symbols are resolved at assembly stage and the symbol
value is placed in the relocation addend. But non-zero addend will
cause an assertion failure during linking.
Forces emission of relocations to defer resolution of local abs symbols
until link time.
bfd/
* elfnn-loongarch.c (loongarch_elf_relax_section): Determine
absolute symbols in advance to avoid ld crash.
gas/
* config/tc-loongarch.c (loongarch_force_relocation): New
function to force relocation.
* config/tc-loongarch.h (TC_FORCE_RELOCATION): New macros
to force relocation.
(loongarch_force_relocation): Function declaration.
* testsuite/gas/loongarch/localpic.d: New test.
* testsuite/gas/loongarch/localpic.s: New test.
Diffstat (limited to 'libbacktrace/posix.c')
0 files changed, 0 insertions, 0 deletions