* readelf.c (dynamic_info): Correct size of array.
authorAlan Modra <amodra@gmail.com>
Fri, 23 Oct 2009 00:15:07 +0000 (00:15 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 23 Oct 2009 00:15:07 +0000 (00:15 +0000)
binutils/ChangeLog
binutils/readelf.c

index 32eceedb5e44d8856005c4df25406b09f0ce685f..fd9b2f55bbaca5a050330965b31057022e14fb95 100644 (file)
@@ -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.
index 8d05d70af6a16a84695a85f48263a2026b06bcb7..d0c8b38f87f5c36a3023b6fa9dee8b3ee61a73ce 100644 (file)
@@ -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;