]> 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:46:20 +0000 (11:46 +0800)
commit060bfd90813b829e7c6a8f7347d5f834d406c29b
tree4d924b4f05e20c054cbd69b62c1453566135d252
parentc3817e092dd01d85dc4145aab9f292bfc19bca05
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