https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82575
--- Comment #2 from Alan Modra <amodra at gmail dot com> --- Created attachment 42397 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42397&action=edit proposed patch I hadn't debugged past grepping for "debugobj" when I created the bugzilla. Now that I've looked further, it seems easy to fix. At least on linux the attached patch cures the problem and should work with other ELF linkers.