Date: Mon, 9 Jan 2023 17:25:14 GMT From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 33724b67e61b - stable/12 - readelf: match GNU readelf formatting Message-ID: <202301091725.309HPEJt037355@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=33724b67e61bd1b8b139fc4c8abc48f3da1abed9 commit 33724b67e61bd1b8b139fc4c8abc48f3da1abed9 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-12-13 20:07:46 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2023-01-09 17:25:02 +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 (cherry picked from commit 766145637dd5f1316c2ac4a20956e1b17bf8df42) --- 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 a09c471a2d22..a39235959474 100644 --- a/contrib/elftoolchain/readelf/readelf.c +++ b/contrib/elftoolchain/readelf/readelf.c @@ -3235,8 +3235,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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301091725.309HPEJt037355>