* readelf.c (dump_section): Don't print 32-bit values, which
were done incorrectly for little-endian. Instead print bytes.
This commit is contained in:
parent
06e4ef679f
commit
20414cabef
|
@ -1,3 +1,8 @@
|
|||
2007-01-05 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* readelf.c (dump_section): Don't print 32-bit values, which
|
||||
were done incorrectly for little-endian. Instead print bytes.
|
||||
|
||||
2006-12-25 Kazu Hirata <kazu@codesourcery.com>
|
||||
|
||||
* readelf.c (get_machine_flags): Handle EF_M68K_CPU32_FIDO_A.
|
||||
|
|
|
@ -7671,23 +7671,6 @@ dump_section (Elf_Internal_Shdr *section, FILE *file)
|
|||
|
||||
printf (" 0x%8.8lx ", (unsigned long) addr);
|
||||
|
||||
switch (elf_header.e_ident[EI_DATA])
|
||||
{
|
||||
default:
|
||||
case ELFDATA2LSB:
|
||||
for (j = 15; j >= 0; j --)
|
||||
{
|
||||
if (j < lbytes)
|
||||
printf ("%2.2x", data[j]);
|
||||
else
|
||||
printf (" ");
|
||||
|
||||
if (!(j & 0x3))
|
||||
printf (" ");
|
||||
}
|
||||
break;
|
||||
|
||||
case ELFDATA2MSB:
|
||||
for (j = 0; j < 16; j++)
|
||||
{
|
||||
if (j < lbytes)
|
||||
|
@ -7698,8 +7681,6 @@ dump_section (Elf_Internal_Shdr *section, FILE *file)
|
|||
if ((j & 3) == 3)
|
||||
printf (" ");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
for (j = 0; j < lbytes; j++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue