bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/27672] Fix quirky size output in readelf symbol tables


From: nick.lott at gmail dot com
Subject: [Bug binutils/27672] Fix quirky size output in readelf symbol tables
Date: Sat, 03 Apr 2021 07:29:42 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27672

--- Comment #3 from Nick Lott <nick.lott at gmail dot com> ---
Hi Nick,
Thanks for responding so quickly.

(In reply to Nick Clifton from comment #1) 
> Of course there are times when this is not true, so it seems to me that the
> best solution would be to allow the user to choose.  How about creating (yet
> another) new command line option --sym-base=[0|8|10|16]' where 0 would mean
> to continue with the current mixed-base output ?  (The 0 value is necessary
> because there may be users of readelf that rely upon the behaviour).  It
> should apply to all types of symbol, not just dynamic.  What do you think ?
> 
> Cheers
>   Nick

Sounds like a pretty good compromise, I wouldn't want to touch the default
behaviour after 17 years. 

I've attached a patch which does what I think you've described.

It looks like the 'print_dynamic_symbol()' function is actually used to print
all symbol table entries, so I think I've covered all types, but I didn't test
extensively.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]