* readelf.c (process_program_headers): Correct section in segment
authorAlan Modra <amodra@gmail.com>
Wed, 30 Apr 2008 02:09:48 +0000 (02:09 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 30 Apr 2008 02:09:48 +0000 (02:09 +0000)
display.

binutils/ChangeLog
binutils/readelf.c

index b3caac3dba8a7460ca6402d8122480146c067967..bba6260d83d9f6705a2269752f8d64da5cd10318 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-30  Alan Modra  <amodra@bigpond.net.au>
+
+       * readelf.c (process_program_headers): Correct section in segment
+       display.
+
 2008-04-28  M Thomas  <mthomas@rhrk.uni-kl.de>
            Nick Clifton  <nickc@redhat.com>
 
index b2f0d692b8c8614df00ef6761f047d8a29f2549c..4964fa82af5b653417cff0b3c10c6092412b559b 100644 (file)
@@ -3682,7 +3682,7 @@ process_program_headers (FILE *file)
          Elf_Internal_Shdr *section;
 
          segment = program_headers + i;
-         section = section_headers;
+         section = section_headers + 1;
 
          printf ("   %2.2d     ", i);