From bb8a0291affe114880874c0e192b471c87663b27 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 23 Oct 2009 00:15:07 +0000 Subject: [PATCH] * readelf.c (dynamic_info): Correct size of array. --- binutils/ChangeLog | 4 ++++ binutils/readelf.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 32eceedb5e4..fd9b2f55bba 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2009-10-23 Thomas Cougnard + + * readelf.c (dynamic_info): Correct size of array. + 2009-10-21 Ben Elliston * MAINTAINERS (BUILD SYSTEM, TESTSUITES): Remove myself. diff --git a/binutils/readelf.c b/binutils/readelf.c index 8d05d70af6a..d0c8b38f87f 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; -- 2.30.2