GNU ld has got an exception for such symbols, and mingw-w64 occasionally uses that exception to avoid exporting symbols in cases where they otherwise aren't caught by the other exclusion mechanisms.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
COFF/MinGW.cpp | ||
---|---|---|
103–109 ↗ | (On Diff #124560) | Ok, will do. |
105–108 ↗ | (On Diff #124560) | No, the __imp_ prefix is added before the actual symbol name. The function foo which for cdecl gets mangled into _foo has the corresponding __imp__foo (while it'd be __imp_foo for x86_64), so here it works out automatically. |