https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99872
--- Comment #6 from jyong at gcc dot gnu.org --- I can confirm the symbols are correctly generated regardless of -fno-leading-underscore or not, the internal symbols are no longer emitted as undefined after assembly. GCC can also finish building the target libraries without any problems for 32bit MinGW.