[PATCH] readelf: print section names when dump the symbol table

Fangrui Song i@maskray.me
Wed Apr 21 23:59:45 GMT 2021


On 2021-04-21, Nick Clifton via Binutils wrote:
>Hi Luo,
>
>  This is a good idea, but your implementation had two drawbacks.
>  Firstly some MIPS targets do provide names for their section symbols,
>  and in such cases the provided name should be used.
>
>  Secondly the change introduces a lot of new failures into the gas, ld
>  and binutils testsuites, as the additional output is not matched by
>  the regular expressions being used.
>
>  I have therefore amended your patch to the one attached and applied
>  that.
>
>Cheers
>  Nick
>

This is great and improves compatibility with llvm-readelf which does
this since https://reviews.llvm.org/D58796


More information about the Binutils mailing list