Possible bug in binutils for MinGW-w64 related to linking weak symbols

Eric Botcazou ebotcazou@libertysurf.fr
Thu Mar 19 23:30:45 GMT 2026


> True, but it works differently on the mingw-w64 target than on all others.
> On a Linux target, the code compiles and links without problems. IMHO it
> shouldn't change the semantics of __attribute__((weak))__ depending on
> target architecture.

"weak" is a pure ELF thing, so the argument does not sound very convincing 
when applied to it and another object file format.

-- 
Eric Botcazou




More information about the Binutils mailing list