aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-10-23 00:15:07 +0000
committerAlan Modra <amodra@gmail.com>2009-10-23 00:15:07 +0000
commitbb8a0291affe114880874c0e192b471c87663b27 (patch)
tree69195ffdf56bfee294b4b4df86f3c82f2b0fd5d6 /binutils/readelf.c
parent65f52a20ac02225190ad3193bd97a6154bcdba64 (diff)
downloadgdb-bb8a0291affe114880874c0e192b471c87663b27.zip
gdb-bb8a0291affe114880874c0e192b471c87663b27.tar.gz
gdb-bb8a0291affe114880874c0e192b471c87663b27.tar.bz2
* readelf.c (dynamic_info): Correct size of array.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 8d05d70..d0c8b38 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -165,7 +165,7 @@ static Elf_Internal_Syminfo * dynamic_syminfo;
static unsigned long dynamic_syminfo_offset;
static unsigned int dynamic_syminfo_nent;
static char program_interpreter[PATH_MAX];
-static bfd_vma dynamic_info[DT_JMPREL + 1];
+static bfd_vma dynamic_info[DT_ENCODING];
static bfd_vma dynamic_info_DT_GNU_HASH;
static bfd_vma version_info[16];
static Elf_Internal_Ehdr elf_header;