[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: secti
From: |
euloanty at live dot com |
Subject: |
[Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows |
Date: |
Wed, 25 Jan 2023 04:24:43 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29973
--- Comment #5 from cqwrteur <euloanty at live dot com> ---
nope. none of them work. I can only make it work with lld.
it does not work when the code dynamically linked with libstdc++
Probably it is the latest patch on GCC that changes the win32 thread model
causes the issue.
I am now using win32 thread model of GCC but libstdc++ cannot dynamically link.
It works when -static-libstdc++ is used. My guess is that it might be either ld
or libstdc++’s issues.
From: nickc at redhat dot com <sourceware-bugzilla@sourceware.org>
Sent: Tuesday, January 24, 2023 8:24:58 AM
To: euloanty@live.com <euloanty@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
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
--- Comment #4 from Nick Clifton <nickc at redhat dot com> ---
Hi cqwrteur,
I am afraid that we are going to need some more information before we can get
to the bottom of this issue. For example:
* What is the code in helloworld.cc ?
* Why is the "-s" option being used ?
* Does the problem still occur if "-s" is not used ?
* Similarly, does omitting "-flto" make the linking work ?
It would help if you could upload the compiled form of helloworld.cc (ie
helloworld.o). I did try to reproduce the problem myself, but the link worked.
I was however using gcc version 11 not version 13.
Also which version of the linker are you using ?
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.
You reported the bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, (continued)
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/07
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/07
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/07
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/14
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/14
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, jwakely.gcc at gmail dot com, 2023/01/14
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/14
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/22
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/22
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, nickc at redhat dot com, 2023/01/24
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows,
euloanty at live dot com <=
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/24
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/24
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, jwakely.gcc at gmail dot com, 2023/01/25
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/25
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, jwakely.gcc at gmail dot com, 2023/01/25
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/25
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/25
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/25
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, nickc at redhat dot com, 2023/01/25
- [Bug ld/29973] x86_64-w64-mingw32-g++ ld: helloworld.exe:.rdata_r: section below image base for windows, euloanty at live dot com, 2023/01/25