aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
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 /binutils/readelf.c
parentf5d9e8160d9bc509d6c958e4d303245a71af37f4 (diff)
downloadfsf-binutils-gdb-f4be36b3fb26d687944e39d46cef536fb1fa4de4.zip
fsf-binutils-gdb-f4be36b3fb26d687944e39d46cef536fb1fa4de4.tar.gz
fsf-binutils-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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c8
1 files changed, 4 insertions, 4 deletions
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. */