[PATCH] debugedit: Skip relocations with missing symbol/section offset.
Mark Wielaard
mark@klomp.org
Mon Jul 5 14:38:37 GMT 2021
Hi Tom,
On Thu, 2021-07-01 at 13:12 -0700, Tom Stellard wrote:
> On 7/1/21 3:05 AM, Mark Wielaard wrote:
> > We tried to handle relocations that didn't have a symbol associated
> > with any section. The would cause a message like: "Unhandled
> > relocation 1 in .debug_info section". Which wasn't that helpful
> > either. So skip relocations without an associated symbol section
> > index
> > and improve the error message a little.
> >
> > * debugedit.c (setup_relbuf): Continue when sym.st_shndx == 0.
> > Add relocation index to error message.
> >
>
> I tested this and can confirm that it fixes my issue with the
> Fedora kernel builds with clang and LTO.
Thanks for testing, pushed to main.
Note that although debugedit now silently ignores these noop
relocations they do still produce useless/broken DWARF.
Cheers,
Mark
More information about the Debugedit
mailing list