]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Add new relocation R_LARCH_CALL36
authormengqinggang <mengqinggang@loongson.cn>
Thu, 28 Sep 2023 08:41:15 +0000 (16:41 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Mon, 18 Dec 2023 10:36:21 +0000 (18:36 +0800)
commitdc5f359ed6a36d2c895d89c3e4886f3a2b6d9232
treeca60c74de15fdc76c54e8eb3a7d881078f3585d7
parentd51cd0f64c6d3bd235f140ed71cc2c3e0b87a5ff
LoongArch: Add new relocation R_LARCH_CALL36

R_LARCH_CALL36 is used for medium code model function call pcaddu18i+jirl, and
these two instructions must adjacent.

The LoongArch ABI v2.20 at here: https://github.com/loongson/la-abi-specs.
bfd/bfd-in2.h
bfd/elfnn-loongarch.c
bfd/elfxx-loongarch.c
bfd/libbfd.h
bfd/reloc.c
gas/config/tc-loongarch.c
gas/testsuite/gas/loongarch/medium-call.d [new file with mode: 0644]
gas/testsuite/gas/loongarch/medium-call.s [new file with mode: 0644]
include/elf/loongarch.h
ld/testsuite/ld-loongarch-elf/ld-loongarch-elf.exp
ld/testsuite/ld-loongarch-elf/medium-call.s [new file with mode: 0644]