RFC: Change readelf/objdump to automatically follow debug links
Nick Clifton
nickc@redhat.com
Wed Feb 10 10:30:32 GMT 2021
Hi Guys,
I received a bug report from a Fedora rawhide user[1] that requests
that the objdump program should follow debug links automatically when
it is disassembling code. The request seems reasonable to me, given
that many distributions these days make use of separate debug info
files, so I have created the attached patch.
The patch adds a new configure time option --enable-follow-debugs-links=[yes|no]
which can be used to set the default behaviour for both objdump and
readelf. If the option is not used, the default is to follow the
links.
What do people think ? Any objections to this idea ?
Cheers
Nick
PS. Whilst checking for testsuite regressions with the patch I came
across a bug in objdump's merging of symbol tables from debug info
files, so the patch includes a fix for this problem too.
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1926743
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bz1926473.patch
Type: text/x-patch
Size: 18949 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20210210/acf4b5d4/attachment.bin>
More information about the Binutils
mailing list