https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116378
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 58931 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58931&action=edit Proposed fix Here is a proposed fix - it completes the -Wodr warning removal in the m2/C interface code for the libraries which is used by the FIO.open and connecttounix in the stack trace. Patch originally written for PR 116181.