]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Add DT_RELR support
authorXi Ruoyao <xry111@xry111.site>
Sun, 30 Jun 2024 07:18:24 +0000 (15:18 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Fri, 5 Jul 2024 04:11:11 +0000 (12:11 +0800)
commitd89ecf33ab6dd86290b43dc3751d66f263614e68
tree821af070648fc48bc14cd3ebfcf3eb1b70bbe18e
parent17cae6980b15b96570908cebba29a04ab5e8ea41
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>
bfd/elfnn-loongarch.c
binutils/testsuite/lib/binutils-common.exp
ld/emulparams/elf64loongarch.sh