aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfnn-loongarch.c
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2023-07-31 17:09:48 +0800
committerliuzhensong <liuzhensong@loongson.cn>2023-10-17 14:57:04 +0800
commit3233ad1e4e44530fa1088cef4790bdab6ee14944 (patch)
tree8cfa880133d5852a4fce7fca344506c13860b4e7 /bfd/elfnn-loongarch.c
parent84f24adc5ba65e7850d7a83e8839e305ef23c8d4 (diff)
downloadgdb-3233ad1e4e44530fa1088cef4790bdab6ee14944.zip
gdb-3233ad1e4e44530fa1088cef4790bdab6ee14944.tar.gz
gdb-3233ad1e4e44530fa1088cef4790bdab6ee14944.tar.bz2
LoongArch: readelf -d RELASZ excludes .rela.plt size
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.
Diffstat (limited to 'bfd/elfnn-loongarch.c')
-rw-r--r--bfd/elfnn-loongarch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c
index 70a6662..5d5ca19 100644
--- a/bfd/elfnn-loongarch.c
+++ b/bfd/elfnn-loongarch.c
@@ -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"