Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2023 02:31:26 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: f61fca7409f6 - stable/13 - readelf: match GNU readelf formatting
Message-ID:  <202301090231.3092VQMm057680@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=f61fca7409f67f7f8d3e68e8b6c15cf4ae976895

commit f61fca7409f67f7f8d3e68e8b6c15cf4ae976895
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-12-13 20:07:46 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-01-09 02:31:15 +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 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");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301090231.3092VQMm057680>