]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Add more relaxation support for call36
authormengqinggang <mengqinggang@loongson.cn>
Thu, 10 Oct 2024 08:23:30 +0000 (16:23 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Tue, 15 Oct 2024 06:26:17 +0000 (14:26 +0800)
commita104f0a3e62031d2a5aabfe9e82f55158647f444
treed3bbe3b8cf84369c4ae025c380160e83f8d1359c
parent5c3d09c1855b948dd43b9f5f8b3d8aa254d75f43
LoongArch: Add more relaxation support for call36

Add relaxation support for call36 that jump to PLT entry.

Add relaxation support for call36 with IFUNC symbol.

Add relaxation support for call36 that jump to undefweak symbol.
For undefweak symbol, it can always be relaxed if it have no PLT entry.
Because we set the address of undefweak symbol without PLT entry to PC
like relocate_section.
bfd/elfnn-loongarch.c
ld/testsuite/ld-loongarch-elf/relax-call36-exe.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax-call36-so.s [new file with mode: 0644]
ld/testsuite/ld-loongarch-elf/relax.exp