[Bug libstdc++/108332] New: dynamic link libstdc++ with win32 thread model's gcc for windows native toolchain would cause .rdata_r: section below image base
unlvsur at live dot com
gcc-bugzilla@gcc.gnu.org
Sat Jan 7 22:45:09 GMT 2023
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++
More information about the Gcc-bugs
mailing list