]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Add relaxation support for call36 that jump to PLT entry
authormengqinggang <mengqinggang@loongson.cn>
Thu, 26 Dec 2024 06:14:12 +0000 (14:14 +0800)
committercailulu <cailulu@loongson.cn>
Mon, 30 Dec 2024 01:40:14 +0000 (09:40 +0800)
commitbb9a0a36e78aa564021b377a4a7fab4851b2c22b
tree170af94bdd46bec325b5494034bcfde6f23a8de6
parente17aa8bbd84f54cd96f92a2c5b23bf08b5376601
LoongArch: Add relaxation support for call36 that jump to PLT entry

Part of commit a104f0a3e620 ("LoongArch: Add more relaxation support for
call36") in master.  This part is needed for 2.43 branch to fix a link
failure of QtWebEngine-6.8.1, which can be demonstrated with a reduced
test case (with -shared):

    .text
    .zero 1 << 27   # pretending we have a lot of code in .text
    .globl f        # preemptible, thus must be called via PLT
    f:
      move $a0, $r0
      ret
    g:
      pcaddu18i $t0, %call36(f)
      jr $t0

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
bfd/elfnn-loongarch.c