[PATCH v2] readelf: Add --got-contents option
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Fri Aug 29 05:25:31 GMT 2025
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.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Binutils
mailing list