aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-05-22 17:25:36 +0930
committerAlan Modra <amodra@gmail.com>2023-05-22 17:25:36 +0930
commitbc227f4ccb0778a56ca3d9f27652fd9e5e2747ea (patch)
tree32b46bd267309c97d3d08c988851a08b8b4f64dd /binutils
parent17a6f5f26c661dd0f72133cac20db823bf57d7a3 (diff)
downloadgdb-bc227f4ccb0778a56ca3d9f27652fd9e5e2747ea.zip
gdb-bc227f4ccb0778a56ca3d9f27652fd9e5e2747ea.tar.gz
gdb-bc227f4ccb0778a56ca3d9f27652fd9e5e2747ea.tar.bz2
Re: readelf: Support SHT_RELR/DT_RELR for -r
Revert value of DT_ENCODING to as it was before commit a7fd118627, and adjust readelf. include/ * elf/common.h (DT_ENCODING): Set back to 32. binutils/ * readelf.c (struct filedata): Don't size dynamic_info array using DT_ENCODING.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/readelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index b872876..d8ad58b 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -304,7 +304,7 @@ typedef struct filedata
uint64_t * mipsxlat;
uint64_t gnusymidx;
char * program_interpreter;
- uint64_t dynamic_info[DT_ENCODING];
+ uint64_t dynamic_info[DT_RELRENT + 1];
uint64_t dynamic_info_DT_GNU_HASH;
uint64_t dynamic_info_DT_MIPS_XHASH;
elf_section_list * symtab_shndx_list;