[PATCH] readelf: When highpc is in constant form also print as address.
Jan Kratochvil
jan.kratochvil at redhat.com
Tue Mar 26 08:46:57 UTC 2013
On Tue, 26 Mar 2013 09:30:03 +0100, Mark Wielaard wrote:
> Otherwise readelf has to display a symbol
> associated with the "next" symbol, if any.
Displaying such symbol is correct, it corresponds to the address being
displayed.
> But it is inconsistent with how we display high_pc if it is a
> DW_FORM_addr, or when it is displayed on its own, not as a
> low_pc..high_pc range. So lets go for consistent and always display it
> as a "raw" single address instead of a range.
It looks correct to me now:
low_pc (addr) 0x00000000004005e0 <main>
high_pc (data8) 32 (0x0000000000400600 <__libc_csu_init>)
I would prefer to align the addresses underneath but that is already not
possible due to "(addr)" vs. "(data8)"; I am used more to binutils readelf.
Thanks,
Jan
More information about the elfutils-devel
mailing list