]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: ld:Report an error when seeing an unrecognized relocation
authorLulu Cai <cailulu@loongson.cn>
Thu, 21 Mar 2024 07:16:05 +0000 (15:16 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Mon, 11 Nov 2024 03:48:39 +0000 (11:48 +0800)
commit1a1d001f91a2f78d371b3e6bb2311304872d7b17
tree6a2bc10f4a198cc64f541e3d1301daa438110df1
parenta8944c558e1fb22a8349ea02258d246229cd1a6f
LoongArch: ld:Report an error when seeing an unrecognized relocation

If we generate an object file using an assembler with the new
relocations added, and then linking those files with an older
linker, the link will still complete and the linked file will
be generated.
In this case we should report an error instead of continuing
the linking process.

(cherry picked from commit 5966e2eb3fed61ebe5c091a074b368b9238a68c1)
bfd/elfnn-loongarch.c