git: 766145637dd5 - main - readelf: match GNU readelf formatting
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Dec 2022 17:59:13 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=766145637dd5f1316c2ac4a20956e1b17bf8df42
commit 766145637dd5f1316c2ac4a20956e1b17bf8df42
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-12-13 20:07:46 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-12-19 17:57:41 +0000
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
---
contrib/elftoolchain/readelf/readelf.c | 3 +--
1 file changed, 1 insertion(+), 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");