]> 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:55:37 +0000 (11:55 +0800)
commit09ba78f051319e8f8861b26fb9340e21ca973c70
tree0d0268e015c964d4c995104b5409e9b2376536b5
parent00abcf3993039a4da4df92d74973c3aba7447f98
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