diff options
author | Xi Ruoyao <xry111@xry111.site> | 2024-06-30 15:18:24 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2024-07-05 12:11:11 +0800 |
commit | d89ecf33ab6dd86290b43dc3751d66f263614e68 (patch) | |
tree | 821af070648fc48bc14cd3ebfcf3eb1b70bbe18e /ld | |
parent | 17cae6980b15b96570908cebba29a04ab5e8ea41 (diff) | |
download | gdb-d89ecf33ab6dd86290b43dc3751d66f263614e68.zip gdb-d89ecf33ab6dd86290b43dc3751d66f263614e68.tar.gz gdb-d89ecf33ab6dd86290b43dc3751d66f263614e68.tar.bz2 |
LoongArch: Add DT_RELR support
The logic is same as a71d87680110 ("aarch64: Add DT_RELR support").
As LoongArch does not have -z dynamic-undefined-weak, we don't need to
consider UNDEFWEAK_NO_DYNAMIC_RELOC.
The linker relaxation adds another layer of complexity. When we delete
bytes in a section during relaxation, we need to fix up the offset in
the to-be-packed relative relocations against this section.
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Diffstat (limited to 'ld')
-rw-r--r-- | ld/emulparams/elf64loongarch.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/emulparams/elf64loongarch.sh b/ld/emulparams/elf64loongarch.sh index d7b2229..8c805da 100644 --- a/ld/emulparams/elf64loongarch.sh +++ b/ld/emulparams/elf64loongarch.sh @@ -1,4 +1,5 @@ source_sh ${srcdir}/emulparams/elf64loongarch-defs.sh +source_sh ${srcdir}/emulparams/dt-relr.sh OUTPUT_FORMAT="elf64-loongarch" case "$target" in |