https://sourceware.org/bugzilla/show_bug.cgi?id=29973
--- Comment #13 from cqwrteur <euloanty at live dot com> --- lld does not work for canadian building compiler Get Outlook for Android<https://aka.ms/AAb9ysg> ________________________________ From: nickc at redhat dot com <sourceware-bugzi...@sourceware.org> Sent: Wednesday, January 25, 2023 8:37:38 AM To: euloa...@live.com <euloa...@live.com> Subject: [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows https://sourceware.org/bugzilla/show_bug.cgi?id=29973 --- Comment #12 from Nick Clifton <nickc at redhat dot com> --- (In reply to cqwrteur from comment #10) > just any C++ code that would link to libstdc++ > > #include<iostream> > > int main() > { > std::cout<<"Hello World\n"; > } > > For example > remove -s -flto flags they all fail while -fuse-ld=lld would work. I tried that, but the compilation and link still works for me. As I said though, I am using gcc 11 not gcc 13. (In reply to cqwrteur from comment #11) > Does the issue come from this patch? > > https://github.com/mirror/mingw-w64/commit/ > fc55e181b2d84c8817e3fd9d86c6944ac709acc9 It could do - I am not familiar with the mingw-w64 runtime code, so I cannot really say. If you have a workaound - using lld - then I would stick with that for now. -- You are receiving this mail because: You reported the bug. You are on the CC list for the bug. -- You are receiving this mail because: You are on the CC list for the bug.