[PATCH v2] readelf: Add --got-contents option

H.J. Lu hjl.tools@gmail.com
Fri Aug 29 12:17:18 GMT 2025


On Thu, Aug 28, 2025 at 10:25 PM Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
>
> Hi H.J.,
>
> > Add --got-contents option to readelf, inspired by the -G option on Solaris,
> > to display contents of GOT sections:
>
> just bikeshedding, but --got-contents seems unnecessarily verbose to me.
> After all, we don't have --symbol-table-contents or some such.  I'd
> prefer --got instead.  Besides, the GOT (and PLT) per se are part of the
> ELF gABI, thus first-class citizens even though the specific contents is
> processor-specific.  As such, I believe they deserve single-letter
> options despite a desire to conserve option letters.
>
> Btw., there's more to be learned from elfdump: e.g. it also has -L to
> display the PLT which readelf seems to lack completely.

Please open a bug report for -L and show what it displays.

Thanks.

-- 
H.J.


More information about the Binutils mailing list