Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 647694

Summary: cross-*-w64-mingw32/binutils: ld-2.30 produces broken C++ executables
Product: Gentoo Linux Reporter: Andrew Church <achurch+gentoo>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sourceware.org/bugzilla/show_bug.cgi?id=22762
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrew Church 2018-02-15 07:43:14 UTC
ld from binutils-2.30 produces Windows executables which fail to run C++ static constructors due to a bug which results in an incorrect definition of __CTOR_LIST__ (and __DTOR_LIST__).  See upstream bug for details.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-02-16 07:26:59 UTC
The fix is queued for next binutils-2.30 gentoo patchset: https://github.com/gentoo/binutils-gdb/commit/810414c2470b2306d04413ec6ecfe8424bd58a28

Thanks for the report!
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-27 21:11:56 UTC
sys-devel/binutils-2.30-r4 is stable everywhere.