LoongArch: readelf -d RELASZ excludes .rela.plt size
authormengqinggang <mengqinggang@loongson.cn>
Mon, 31 Jul 2023 09:09:48 +0000 (17:09 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Tue, 17 Oct 2023 06:57:04 +0000 (14:57 +0800)
Before, readelf -d RELASZ is the sum of .rela.dyn size and .rela.plt size.
To consistent with LoongArch lld, RELASZ chang to only the size of .rela.dyn.

bfd/elfnn-loongarch.c

index 70a666283afbaf47a50fa053c53efa63421628dc..5d5ca19d4903a41954efe183c640b009c2b27cba 100644 (file)
@@ -4663,4 +4663,6 @@ elf_loongarch64_hash_symbol (struct elf_link_hash_entry *h)
 #define elf_backend_hash_symbol elf_loongarch64_hash_symbol
 #define bfd_elfNN_bfd_relax_section loongarch_elf_relax_section
 
+#define elf_backend_dtrel_excludes_plt 1
+
 #include "elfNN-target.h"