https://sourceware.org/bugzilla/show_bug.cgi?id=19480
Bug ID: 19480 Summary: [2.26.51 regression] ld creates wrong output for libstdc++6.dll for mingw32 (32-bit) Product: binutils Version: 2.26 Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: daniel.f.starke at freenet dot de Target Milestone: --- Compiling a Linux -> mingw32-w64 cross-compiler works fine with binutils 2.25.1 but results in a libstdc++6.dll which is less than half the size without debug symbols and crashes on DLL entry point. This problem only occurs for 32-bit target, not for 64-bit target. Compiled GCC 5.3.0 as ../../src/gcc-5.3.0/configure --enable-languages=c,c++ --enable-seh-exceptions --enable-threads=posix --disable-nls --enable-shared=libstdc++ --enable-static --enable-fully-dynamic-string --enable-lto --enable-plugin --enable-libgomp --with-dwarf2 --disable-win32-registry --enable-version-specific-runtime-libs --prefix=/mingw --with-sysroot=/mingw --target=x86_64-w64-mingw32 --enable-targets=all --enable-checking=release --with-gmp=/new-gcc/lib/gmp-5.0.5 --with-mpfr=/new-gcc/lib/mpfr-2.4.2 --with-mpc=/new-gcc/lib/mpc-0.9 --with-isl=/new-gcc/lib/isl-0.12.2 --with-cloog=/new-gcc/lib/cloog-0.18.3 --with-host-libstdcxx='-lstdc++ -lsupc++' --disable-cloog-version-check --enable-cloog-backend=isl on Linux (Xubuntu 14.04.3 LTS). All system libraries where compiled with -O3 -mtune=core2 -march=core2 -mstackrealign -fomit-frame-pointer -Wno-maybe-uninitialized -flto -flto-partition=none -fno-builtin-stpcpy Binutils was in both cases (version 2.25.1 and 2.26.51) configured as configure --enable-lto --enable-plugin --disable-nls --target=x86_64-w64-mingw32 --enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 --with-sysroot=$PREFIX --prefix=$PREFIX "--with-gmp=/new-gcc/lib/gmp-5.0.5" "--with-mpfr=/new-gcc/lib/${MPFR}" "--with-mpc=/new-gcc/lib/mpc-0.9" "--with-isl=/new-gcc/lib/isl-0.12.2" "--with-cloog=/new-gcc/lib/cloog-0.18.3" "--with-host-libstdcxx=-lstdc++ -lsupc++" --disable-cloog-version-check --enable-cloog-backend=isl I first reported this as GCC bug until I found out that it was a binutils regression by using an older version of binutils. See related GCC bug report https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69284 -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils