diff options
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/readelf.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d87b3a2..bfeb69f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2004-04-30 H.J. Lu <hongjiu.lu@intel.com> + + * readelf.c (process_section_headers): Use %3lu on sh_info. + 2004-04-30 Michael Deutschmann <michael@talamasca.ocis.net> * ranlib.sh: Quote $1 argument in case it contains spaces. diff --git a/binutils/readelf.c b/binutils/readelf.c index 29e1c8b..94a9bd0 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -3631,7 +3631,7 @@ process_section_headers (FILE *file) printf (" %3s ", get_elf_section_flags (section->sh_flags)); - printf ("%2ld %3lx %2ld\n", + printf ("%2ld %3lu %2ld\n", (unsigned long) section->sh_link, (unsigned long) section->sh_info, (unsigned long) section->sh_addralign); @@ -3666,7 +3666,7 @@ process_section_headers (FILE *file) printf (" %3s ", get_elf_section_flags (section->sh_flags)); - printf ("%2ld %3lx ", + printf ("%2ld %3lu ", (unsigned long) section->sh_link, (unsigned long) section->sh_info); @@ -3696,7 +3696,7 @@ process_section_headers (FILE *file) printf (" %3s ", get_elf_section_flags (section->sh_flags)); - printf (" %2ld %3lx %ld\n", + printf (" %2ld %3lu %ld\n", (unsigned long) section->sh_link, (unsigned long) section->sh_info, (unsigned long) section->sh_addralign); |