aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-10-03 04:24:08 +0000
committerAlan Modra <amodra@gmail.com>2007-10-03 04:24:08 +0000
commit6f08d80e81cc9b0b99abdd60a25d65ad09c75ffc (patch)
tree30240d0488854e20b2ea43c63995be3a192eb320
parent6340166c8b339b88f1baeff8a3703bf09ed7ce1c (diff)
downloadgdb-6f08d80e81cc9b0b99abdd60a25d65ad09c75ffc.zip
gdb-6f08d80e81cc9b0b99abdd60a25d65ad09c75ffc.tar.gz
gdb-6f08d80e81cc9b0b99abdd60a25d65ad09c75ffc.tar.bz2
* readelf.c (dump_section_as_strings): Use %6tx instead of %6zx.
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/readelf.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 2740e92..26f7d18 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-03 Masaki Muranaka <monaka@monami-software.com>
+
+ * readelf.c (dump_section_as_strings): Use %6tx instead of %6zx.
+
2007-09-25 Thien-Thi Nguyen <ttn@gnuvola.org>
* MAINTAINERS: Fix typo.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index e51e8b0..191042e 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -7778,7 +7778,7 @@ dump_section_as_strings (Elf_Internal_Shdr *section, FILE *file)
if (data < end)
{
- printf (" [%6zx] %s\n", data - start, data);
+ printf (" [%6tx] %s\n", data - start, data);
data += strlen (data);
some_strings_shown = TRUE;
}