https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108332
Bug ID: 108332 Summary: dynamic link libstdc++ with win32 thread model's gcc for windows native toolchain would cause .rdata_r: section below image base Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- g++ -o helloworld helloworld.cc -Ofast -std=c++23 -s -flto -march=native -I../../include -static //ok no issue g++ -o helloworld helloworld.cc -Ofast -std=c++23 -s -flto -march=native -I../../include d:/x86_64-windows-gnu/x86_64-w64-mingw32/bin/../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86_64-w64-mingw32/bin/ld.exe: helloworld.exe:.rdata_r: section below image base Do not know whether it is an issue for mingw-w64 or libstdc++