public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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
@ 2023-01-07 22:45 unlvsur at live dot com
2023-01-07 22:53 ` [Bug libstdc++/108332] " pinskia at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: unlvsur at live dot com @ 2023-01-07 22:45 UTC (permalink / raw)
To: gcc-bugs
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++
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/108332] dynamic link libstdc++ with win32 thread model's gcc for windows native toolchain would cause .rdata_r: section below image base
2023-01-07 22:45 [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
@ 2023-01-07 22:53 ` pinskia at gcc dot gnu.org
2023-01-07 22:54 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-07 22:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108332
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This seems like a binutils ld bug rather than a libstdc++ bug ...
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/108332] dynamic link libstdc++ with win32 thread model's gcc for windows native toolchain would cause .rdata_r: section below image base
2023-01-07 22:45 [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
2023-01-07 22:53 ` [Bug libstdc++/108332] " pinskia at gcc dot gnu.org
@ 2023-01-07 22:54 ` pinskia at gcc dot gnu.org
2023-01-07 22:55 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-07 22:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108332
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://sourceware.org/pipermail/binutils-cvs/2021-March/056031.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/108332] dynamic link libstdc++ with win32 thread model's gcc for windows native toolchain would cause .rdata_r: section below image base
2023-01-07 22:45 [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
2023-01-07 22:53 ` [Bug libstdc++/108332] " pinskia at gcc dot gnu.org
2023-01-07 22:54 ` pinskia at gcc dot gnu.org
@ 2023-01-07 22:55 ` pinskia at gcc dot gnu.org
2023-01-07 22:56 ` unlvsur at live dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-07 22:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108332
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
cygwin was improved here:
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=801120c1f402f9b0f72b5a231bf9e1cf82614cac
It might be the case mingw linker script is broken ....
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/108332] dynamic link libstdc++ with win32 thread model's gcc for windows native toolchain would cause .rdata_r: section below image base
2023-01-07 22:45 [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
` (2 preceding siblings ...)
2023-01-07 22:55 ` pinskia at gcc dot gnu.org
@ 2023-01-07 22:56 ` unlvsur at live dot com
2023-01-09 9:51 ` nightstrike at gmail dot com
2023-01-27 4:21 ` unlvsur at live dot com
5 siblings, 0 replies; 7+ messages in thread
From: unlvsur at live dot com @ 2023-01-07 22:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108332
--- Comment #4 from cqwrteur <unlvsur at live dot com> ---
(In reply to Andrew Pinski from comment #3)
> cygwin was improved here:
> https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;
> h=801120c1f402f9b0f72b5a231bf9e1cf82614cac
>
> It might be the case mingw linker script is broken ....
This is mingw-w64, not newlib-cygwin
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/108332] dynamic link libstdc++ with win32 thread model's gcc for windows native toolchain would cause .rdata_r: section below image base
2023-01-07 22:45 [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
` (3 preceding siblings ...)
2023-01-07 22:56 ` unlvsur at live dot com
@ 2023-01-09 9:51 ` nightstrike at gmail dot com
2023-01-27 4:21 ` unlvsur at live dot com
5 siblings, 0 replies; 7+ messages in thread
From: nightstrike at gmail dot com @ 2023-01-09 9:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108332
nightstrike <nightstrike at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |10walls at gmail dot com,
| |nightstrike at gmail dot com
--- Comment #5 from nightstrike <nightstrike at gmail dot com> ---
(In reply to cqwrteur from comment #4)
> (In reply to Andrew Pinski from comment #3)
> > cygwin was improved here:
> > https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;
> > h=801120c1f402f9b0f72b5a231bf9e1cf82614cac
> >
> > It might be the case mingw linker script is broken ....
>
> This is mingw-w64, not newlib-cygwin
I think he's suggesting that we have to apply the same solution to mingw that
Corinna applied to Cygwin.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/108332] dynamic link libstdc++ with win32 thread model's gcc for windows native toolchain would cause .rdata_r: section below image base
2023-01-07 22:45 [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
` (4 preceding siblings ...)
2023-01-09 9:51 ` nightstrike at gmail dot com
@ 2023-01-27 4:21 ` unlvsur at live dot com
5 siblings, 0 replies; 7+ messages in thread
From: unlvsur at live dot com @ 2023-01-27 4:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108332
--- Comment #6 from cqwrteur <unlvsur at live dot com> ---
(In reply to Andrew Pinski from comment #2)
> https://sourceware.org/pipermail/binutils-cvs/2021-March/056031.html
https://sourceware.org/bugzilla/show_bug.cgi?id=29973
I doubt this is the issue with ld linker. More likely to be a libstdc++ issue.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-01-27 4:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-07 22:45 [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
2023-01-07 22:53 ` [Bug libstdc++/108332] " pinskia at gcc dot gnu.org
2023-01-07 22:54 ` pinskia at gcc dot gnu.org
2023-01-07 22:55 ` pinskia at gcc dot gnu.org
2023-01-07 22:56 ` unlvsur at live dot com
2023-01-09 9:51 ` nightstrike at gmail dot com
2023-01-27 4:21 ` unlvsur at live dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).