mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 06:43:36 +08:00
2011-12-06 David Daney <david.daney@cavium.com>
* readelf.c (dynamic_section_mips_val): Factor out trailing '\n' from printed strings and move it to the end of the function. Use BFD_VMA_FMT for printf format specifier for dynamic tag value. Use print_vma() to print dynamic tag values.
This commit is contained in:
parent
5436df9582
commit
4b68bca3c1
@ -1,3 +1,10 @@
|
||||
2011-12-06 David Daney <david.daney@cavium.com>
|
||||
|
||||
* readelf.c (dynamic_section_mips_val): Factor out trailing '\n'
|
||||
from printed strings and move it to the end of the function.
|
||||
Use BFD_VMA_FMT for printf format specifier for dynamic tag value.
|
||||
Use print_vma() to print dynamic tag values.
|
||||
|
||||
2011-12-02 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* readelf.c (ia64_process_unwind): Turn into a void funtion.
|
||||
|
@ -7234,7 +7234,7 @@ dynamic_section_mips_val (Elf_Internal_Dyn * entry)
|
||||
{
|
||||
case DT_MIPS_FLAGS:
|
||||
if (entry->d_un.d_val == 0)
|
||||
printf (_("NONE\n"));
|
||||
printf (_("NONE"));
|
||||
else
|
||||
{
|
||||
static const char * opts[] =
|
||||
@ -7254,15 +7254,14 @@ dynamic_section_mips_val (Elf_Internal_Dyn * entry)
|
||||
printf ("%s%s", first ? "" : " ", opts[cnt]);
|
||||
first = 0;
|
||||
}
|
||||
puts ("");
|
||||
}
|
||||
break;
|
||||
|
||||
case DT_MIPS_IVERSION:
|
||||
if (VALID_DYNAMIC_NAME (entry->d_un.d_val))
|
||||
printf (_("Interface Version: %s\n"), GET_DYNAMIC_NAME (entry->d_un.d_val));
|
||||
printf (_("Interface Version: %s"), GET_DYNAMIC_NAME (entry->d_un.d_val));
|
||||
else
|
||||
printf (_("<corrupt: %ld>\n"), (long) entry->d_un.d_ptr);
|
||||
printf (_("<corrupt: %" BFD_VMA_FMT "d>"), entry->d_un.d_ptr);
|
||||
break;
|
||||
|
||||
case DT_MIPS_TIME_STAMP:
|
||||
@ -7275,7 +7274,7 @@ dynamic_section_mips_val (Elf_Internal_Dyn * entry)
|
||||
snprintf (timebuf, sizeof (timebuf), "%04u-%02u-%02uT%02u:%02u:%02u",
|
||||
tmp->tm_year + 1900, tmp->tm_mon + 1, tmp->tm_mday,
|
||||
tmp->tm_hour, tmp->tm_min, tmp->tm_sec);
|
||||
printf (_("Time Stamp: %s\n"), timebuf);
|
||||
printf (_("Time Stamp: %s"), timebuf);
|
||||
}
|
||||
break;
|
||||
|
||||
@ -7292,12 +7291,13 @@ dynamic_section_mips_val (Elf_Internal_Dyn * entry)
|
||||
case DT_MIPS_DELTA_SYM_NO:
|
||||
case DT_MIPS_DELTA_CLASSSYM_NO:
|
||||
case DT_MIPS_COMPACT_SIZE:
|
||||
printf ("%ld\n", (long) entry->d_un.d_ptr);
|
||||
print_vma (entry->d_un.d_ptr, DEC);
|
||||
break;
|
||||
|
||||
default:
|
||||
printf ("%#lx\n", (unsigned long) entry->d_un.d_ptr);
|
||||
print_vma (entry->d_un.d_ptr, PREFIX_HEX);
|
||||
}
|
||||
putchar ('\n');
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user