aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2021-11-04 01:30:12 -0700
committerAlan Modra <amodra@gmail.com>2021-11-06 17:11:08 +1030
commitdd207c1302d28d2d2b33cff058bb3fbf5138b480 (patch)
tree5892f0c7480c96fec278d396a499abd7fe5503c5 /binutils
parent04d8355ac606cc96390a51d3db1152aafd4747c6 (diff)
downloadbinutils-dd207c1302d28d2d2b33cff058bb3fbf5138b480.zip
binutils-dd207c1302d28d2d2b33cff058bb3fbf5138b480.tar.gz
binutils-dd207c1302d28d2d2b33cff058bb3fbf5138b480.tar.bz2
readelf: Support RELR in -S and -d and output
readelf -r dumping support is not added in this patch. include/ * elf/common.h: Add SHT_RELR, DT_RELR{,SZ,ENT} bfd/ * elf.c (_bfd_elf_print_private_bfd_data): Add DT_RELR{,SZ,ENT}. binutils/ * readelf.c (get_dynamic_type): Add DT_RELR{,SZ,ENT}. (get_section_type_name): Add SHT_RELR.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/readelf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 7a162ee..cf3168f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -2228,6 +2228,9 @@ get_dynamic_type (Filedata * filedata, unsigned long type)
case DT_REL: return "REL";
case DT_RELSZ: return "RELSZ";
case DT_RELENT: return "RELENT";
+ case DT_RELR: return "RELR";
+ case DT_RELRSZ: return "RELRSZ";
+ case DT_RELRENT: return "RELRENT";
case DT_PLTREL: return "PLTREL";
case DT_DEBUG: return "DEBUG";
case DT_TEXTREL: return "TEXTREL";
@@ -4535,6 +4538,7 @@ get_section_type_name (Filedata * filedata, unsigned int sh_type)
case SHT_SYMTAB: return "SYMTAB";
case SHT_STRTAB: return "STRTAB";
case SHT_RELA: return "RELA";
+ case SHT_RELR: return "RELR";
case SHT_HASH: return "HASH";
case SHT_DYNAMIC: return "DYNAMIC";
case SHT_NOTE: return "NOTE";
@@ -11385,6 +11389,8 @@ the .dynstr section doesn't match the DT_STRTAB and DT_STRSZ tags\n"));
case DT_PLTPADSZ:
case DT_MOVEENT :
case DT_MOVESZ :
+ case DT_RELRENT :
+ case DT_RELRSZ :
case DT_PREINIT_ARRAYSZ:
case DT_INIT_ARRAYSZ:
case DT_FINI_ARRAYSZ: