在 2026-1-26 02:35, Johannes Khoshnazar-Thoma 写道:
Yes and no. PE COFF object files do not support weak symbols; only weak externals [1]. So by that definition, weak symbols are not supported by GNU toolchains on Windows [2], and may produce unexpected behavior.So, my questions are:* is this a real bug? Or is it just a different point of view onto how weak symbols are handled? * If it is a bug, can I help somehow to fix it? * If it is not a bug, what (except for declaring all possible symbols as __weak which I want to avoid, because there are a LOT in the Linux kernel) would be a workaround (some compiler/linker flags maybe?)
In this case you might want to try LLVM [3]. [1] https://learn.microsoft.com/en-us/windows/win32/debug/pe-format [2] https://sourceware.org/bugzilla/show_bug.cgi?id=9687 [3] https://maskray.me/blog/2021-04-25-weak-symbol -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
