From: Alan Modra Date: Fri, 23 Oct 2009 00:15:07 +0000 (+0000) Subject: * readelf.c (dynamic_info): Correct size of array. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb8a0291affe114880874c0e192b471c87663b27;p=binutils-gdb.git * readelf.c (dynamic_info): Correct size of array. --- 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;