[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/26028] Readelf truncates symbol names - which is both undo
From: |
i at maskray dot me |
Subject: |
[Bug binutils/26028] Readelf truncates symbol names - which is both undocumented, and unnecessary |
Date: |
Sun, 02 Aug 2020 21:12:09 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26028
--- Comment #7 from Fangrui Song <i at maskray dot me> ---
(In reply to Nick Clifton from comment #6)
> (In reply to Fangrui Song from comment #5)
>
> > About the new -T/--silent-truncation option, I wonder whether the truncation
> > is important enough that deserves a short option... When a truncated symbol
> > name, it almost certainly means the user has to add --wide and rerun readelf
> > if they want to base their decisions on the symbol name (e.g. objdump -d ...
> > | grep $symbol_name_extracted_from_readelf). I don't know whether a short
> > option -T will help them..
>
> Eh - there are enough unused single letters that having a short version of
> the --silent-truncation option should not cause any grief. The option
> itself is certainly useful - for example in the linker and binutils
> testsuites - and I am sure that there are some people who will want to use
> it for their own scripts/build systems.
I haven't studied the implementation but it seems that the default output has
become worse for many system utilities.
binutils 2.34:
% readelf -s =cat
...
58: 000000000000b278 8 OBJECT GLOBAL DEFAULT 26
__progname_full@GLIBC_2.2.5 (2)
59: 000000000000b260 8 OBJECT WEAK DEFAULT 26
program_invocation_short_@GLIBC_2.2.5 (2)
60: 000000000000b280 8 OBJECT GLOBAL DEFAULT 26 stderr@GLIBC_2.2.5
(2)
61: 000000000000b270 4 OBJECT GLOBAL DEFAULT 26 optind@GLIBC_2.2.5
(2)
master:
% ./Debug/binutils/readelf -s =cat
...
58: 000000000000b278 8 OBJECT GLOBAL DEFAULT 26 [...]@GLIBC_2.2.5
(2)
59: 000000000000b260 8 OBJECT WEAK DEFAULT 26 [...]@GLIBC_2.2.5
(2)
60: 000000000000b280 8 OBJECT GLOBAL DEFAULT 26 [...]@GLIBC_2.2.5
(2)
61: 000000000000b270 4 OBJECT GLOBAL DEFAULT 26 [...]@GLIBC_2.2.5
(2)
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/26028] Readelf truncates symbol names - which is both undocumented, and unnecessary,
i at maskray dot me <=