summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-04-30 02:09:48 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-04-30 02:09:48 +0000
commit20a85f1cfcec4898b3117fd53f7054987bf7d66b (patch)
tree4d98af4447f9020365a28087d3ee3082a6371346
parenta5da80d1066629550b7ba540ba81431d2d0c87a4 (diff)
downloadbinutils-redhat-20a85f1cfcec4898b3117fd53f7054987bf7d66b.tar.gz
* readelf.c (process_program_headers): Correct section in segment
display.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index b3caac3dba..bba6260d83 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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>
diff --git a/binutils/readelf.c b/binutils/readelf.c
index b2f0d692b8..4964fa82af 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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);