[PATCH] readelf: Report if no GOT section found
H.J. Lu
hjl.tools@gmail.com
Wed Sep 3 12:43:55 GMT 2025
On Wed, Sep 3, 2025 at 1:12 AM Alan Modra <amodra@gmail.com> wrote:
>
> On Tue, Sep 02, 2025 at 07:47:17PM -0700, H.J. Lu wrote:
> > On Tue, Sep 2, 2025 at 7:06 PM Alan Modra <amodra@gmail.com> wrote:
> > >
> > > On Mon, Sep 01, 2025 at 11:00:43AM -0700, H.J. Lu wrote:
> > > > Update "readelf --got-contents" to report if no GOT section found.
> > > >
> > > > * readelf.c (process_got_section_contents): Report if no GOT
> > > > section found.
> > > > * testsuite/binutils-all/readelf-got.d: New file.
> > > > * testsuite/binutils-all/readelf.exp: Run readelf-got.
> > >
> > > The new test fails on mips, for the obvious reason that
> >
> > This
> >
> > https://patchwork.sourceware.org/project/binutils/list/?series=51506
> >
> > should fix the test.
>
> Well then, the test does nothing but check a particular readelf
> message. That's a waste of test time and just adds more work should
> someone decide the message needs tweaking. Please delete the test
> when you commit the EXEC/DYN change, which is OK.
This is the patch I am checking in.
Thanks.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-readelf-Run-got-contents-only-on-ET_DYN-ET_EXEC-f.patch
Type: text/x-patch
Size: 2296 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250903/6aff1dc3/attachment.bin>
More information about the Binutils
mailing list