diff options
author | Fangrui Song <maskray@google.com> | 2021-11-04 01:30:12 -0700 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-11-06 17:11:08 +1030 |
commit | dd207c1302d28d2d2b33cff058bb3fbf5138b480 (patch) | |
tree | 5892f0c7480c96fec278d396a499abd7fe5503c5 /include | |
parent | 04d8355ac606cc96390a51d3db1152aafd4747c6 (diff) | |
download | gdb-dd207c1302d28d2d2b33cff058bb3fbf5138b480.zip gdb-dd207c1302d28d2d2b33cff058bb3fbf5138b480.tar.gz gdb-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 'include')
-rw-r--r-- | include/elf/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/elf/common.h b/include/elf/common.h index 42dadbb..4da28fa 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -523,6 +523,7 @@ #define SHT_PREINIT_ARRAY 16 /* Array of ptrs to pre-init funcs */ #define SHT_GROUP 17 /* Section contains a section group */ #define SHT_SYMTAB_SHNDX 18 /* Indices for SHN_XINDEX entries */ +#define SHT_RELR 19 /* RELR relative relocations */ #define SHT_LOOS 0x60000000 /* First of OS specific semantics */ #define SHT_HIOS 0x6fffffff /* Last of OS specific semantics */ @@ -1105,6 +1106,9 @@ #define DT_PREINIT_ARRAY 32 #define DT_PREINIT_ARRAYSZ 33 #define DT_SYMTAB_SHNDX 34 +#define DT_RELRSZ 35 +#define DT_RELR 36 +#define DT_RELRENT 37 /* Note, the Oct 4, 1999 draft of the ELF ABI changed the values for DT_LOOS and DT_HIOS. Some implementations however, use |