aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2022-12-13 20:07:46 +0000
committerEd Maste <emaste@FreeBSD.org>2023-01-09 02:31:15 +0000
commitf61fca7409f67f7f8d3e68e8b6c15cf4ae976895 (patch)
treee887efe38e0cbd9824a48c5e3f3379a58c938f99
parent4ad93073a17d579625217084b7831e5419c7758f (diff)
downloadsrc-f61fca7409f67f7f8d3e68e8b6c15cf4ae976895.tar.gz
src-f61fca7409f67f7f8d3e68e8b6c15cf4ae976895.zip
readelf: match GNU readelf formatting
GNU readelf emits a blank line before, and uses single quotes around the symbol table name, in each "Symbol table 'name' contains ## entries" header. Reviewed by: markj MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37746 (cherry picked from commit 766145637dd5f1316c2ac4a20956e1b17bf8df42)
-rw-r--r--contrib/elftoolchain/readelf/readelf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/elftoolchain/readelf/readelf.c b/contrib/elftoolchain/readelf/readelf.c
index 25dda95f2a50..77125b77ebef 100644
--- a/contrib/elftoolchain/readelf/readelf.c
+++ b/contrib/elftoolchain/readelf/readelf.c
@@ -3263,8 +3263,7 @@ dump_symtab(struct readelf *re, int i)
return;
if (!get_ent_count(s, &len))
return;
- printf("Symbol table (%s)", s->name);
- printf(" contains %d entries:\n", len);
+ printf("\nSymbol table '%s' contains %d entries:\n", s->name, len);
printf("%7s%9s%14s%5s%8s%6s%9s%5s\n", "Num:", "Value", "Size", "Type",
"Bind", "Vis", "Ndx", "Name");