[Bug debugedit/33789] debugedit corrupts RISC-V object files

mark at klomp dot org sourceware-bugzilla@sourceware.org
Tue Jan 13 17:38:28 GMT 2026


https://sourceware.org/bugzilla/show_bug.cgi?id=33789

--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
But even without a RISC-V object I do see something that debugedit isn't
expecting. On other arches cross-.debug section reference relocations are
against the section symbol, aka the start of the .debug section. The start of
the debug section symbol wouldn't change even if the section size would change,
and so doesn't need to be adjusted. So debugedit doesn't contain code to adjust
symbol values. We will have to figure out why on RISC-V this doesn't happen.
Why is there this .LASF1 symbol? And why do the relocations use that instead of
the start of section symbol?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Debugedit mailing list