diff options
author | Alan Modra <amodra@gmail.com> | 2009-10-23 00:15:07 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-10-23 00:15:07 +0000 |
commit | bb8a0291affe114880874c0e192b471c87663b27 (patch) | |
tree | 69195ffdf56bfee294b4b4df86f3c82f2b0fd5d6 | |
parent | 65f52a20ac02225190ad3193bd97a6154bcdba64 (diff) | |
download | gdb-bb8a0291affe114880874c0e192b471c87663b27.zip gdb-bb8a0291affe114880874c0e192b471c87663b27.tar.gz gdb-bb8a0291affe114880874c0e192b471c87663b27.tar.bz2 |
* readelf.c (dynamic_info): Correct size of array.
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/readelf.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 32eceed..fd9b2f5 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2009-10-23 Thomas Cougnard <thomas.cougnard@gmail.com> + + * readelf.c (dynamic_info): Correct size of array. + 2009-10-21 Ben Elliston <bje@gnu.org> * MAINTAINERS (BUILD SYSTEM, TESTSUITES): Remove myself. 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; |