aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-09-24 15:13:16 +0000
committerAlan Modra <amodra@gmail.com>2009-09-24 15:13:16 +0000
commitf4be36b3fb26d687944e39d46cef536fb1fa4de4 (patch)
treea88d32ae317875a3e3b3b5a25506e2b4c1b8ef4d
parentf5d9e8160d9bc509d6c958e4d303245a71af37f4 (diff)
downloadgdb-f4be36b3fb26d687944e39d46cef536fb1fa4de4.zip
gdb-f4be36b3fb26d687944e39d46cef536fb1fa4de4.tar.gz
gdb-f4be36b3fb26d687944e39d46cef536fb1fa4de4.tar.bz2
* readelf.c (print_dynamic_symbol): Format entries as for
normal symbol table. (process_symbol_table): Use -7s format string for visibility.
-rw-r--r--binutils/ChangeLog14
-rw-r--r--binutils/readelf.c8
2 files changed, 14 insertions, 8 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index a41b729..8df97ef 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-25 Alan Modra <amodra@bigpond.net.au>
+
+ * readelf.c (print_dynamic_symbol): Format entries as for
+ normal symbol table.
+ (process_symbol_table): Use -7s format string for visibility.
+
2009-09-22 Richard Sandiford <rdsandiford@googlemail.com>
* objdump.c (disassemble_section): Use bfd_get_arch_size
@@ -57,7 +63,7 @@
debug_baseclass_s, struct debug_method_s, struct
debug_method_variant_s, struct debug_type_s): Rename struct from
avoid name collision.
- * debug.h: Use new struct names.
+ * debug.h: Use new struct names.
* dwarf.c: Add casts.
(free_debug_memory): Change loop counter variable a to int.
* ieee.c: Add casts.
@@ -66,7 +72,7 @@
(ieee_class_method_var): Rename variable virtual to is_virtual.
* nm.c: Add casts.
* objcopy.c: Add casts.
- (copy_archive): Rename variable delete to del.
+ (copy_archive): Rename variable delete to del.
* objdump.c: Add casts.
(dump_dwarf_section): Change loop counter variable i to int.
* prdbg.c: Add casts.
@@ -139,7 +145,7 @@
* dlltool.c (delayimp_name): Add new global variable
(usage, long_options, main): Add new option "-y" / "--output-delaylib"
- (struct mac): Add fields how_dljtab_size, how_dljtab_roff1,
+ (struct mac): Add fields how_dljtab_size, how_dljtab_roff1,
how_dljtab_roff2, how_dljtab, trampoline.
(i386_dljtab): Add binary stub for x86 delay import.
(i386_trampoline): Add text assembly stub for x86 delay import.
@@ -672,7 +678,7 @@
2009-03-27 Nick Clifton <nickc@redhat.com>
* dwarf.c (display_debug_ranges): Add the base address to the
- displayed values for 'Begin' and 'End'.
+ displayed values for 'Begin' and 'End'.
2009-03-25 Ryan Mansfield <rmansfield@qnx.com>
diff --git a/binutils/readelf.c b/binutils/readelf.c
index c20c84a..edd5a2e 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -7226,9 +7226,9 @@ print_dynamic_symbol (bfd_vma si, unsigned long hn)
putchar (' ');
print_vma (psym->st_size, DEC_5);
- printf (" %6s", get_symbol_type (ELF_ST_TYPE (psym->st_info)));
- printf (" %6s", get_symbol_binding (ELF_ST_BIND (psym->st_info)));
- printf (" %3s", get_symbol_visibility (ELF_ST_VISIBILITY (psym->st_other)));
+ printf (" %-7s", get_symbol_type (ELF_ST_TYPE (psym->st_info)));
+ printf (" %-6s", get_symbol_binding (ELF_ST_BIND (psym->st_info)));
+ printf (" %-7s", get_symbol_visibility (ELF_ST_VISIBILITY (psym->st_other)));
/* Check to see if any other bits in the st_other field are set.
Note - displaying this information disrupts the layout of the
table being generated, but for the moment this case is very
@@ -7532,7 +7532,7 @@ process_symbol_table (FILE * file)
print_vma (psym->st_size, DEC_5);
printf (" %-7s", get_symbol_type (ELF_ST_TYPE (psym->st_info)));
printf (" %-6s", get_symbol_binding (ELF_ST_BIND (psym->st_info)));
- printf (" %-3s", get_symbol_visibility (ELF_ST_VISIBILITY (psym->st_other)));
+ printf (" %-7s", get_symbol_visibility (ELF_ST_VISIBILITY (psym->st_other)));
/* Check to see if any other bits in the st_other field are set.
Note - displaying this information disrupts the layout of the
table being generated, but for the moment this case is very rare. */