GCC: Bad return code before reaching main
when fprintf
is linked with aarch64-w64-mingw32-g++
executable
#198
Labels
C++
C++ Support
Issue
When the following C/C++ code:
is compiled with
aarch64-w64-mingw32-g++
the control flow does not reachmain
and return code 127 or 123 is returned.aarch64-w64-mingw32-gcc
, it works fine.fprintf
line is removed, it works fine.printf
work fine.aarch64-w64-mingw32-gcc
andaarch64-w64-mingw32-g++
they are identical and when then they are linked withaarch64-w64-mingw32-g++
it fails while withaarch64-w64-mingw32-gcc
it works.-static
the binary works fine.libgcc_s_seh-1.dll
correctly while C linked ones does.aarch64-w64-mingw32-g++
bad-exe.txt and byaarch64-w64-mingw32-gcc
good-exe.txt linkers are showing some differences.The text was updated successfully, but these errors were encountered: