[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-02-14 Thread despair at rvx86 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

Absolute Despair  changed:

   What|Removed |Added

 Target||i686-w64-mingw32
   Host||x86_64-unknown-openbsd6.2
  Build||x86_64-unknown-openbsd6.2

-- 
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


[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-02-15 Thread despair at rvx86 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

--- Comment #1 from Absolute Despair  ---
Created attachment 10822
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10822&action=edit
truncated IAT/GOT

-- 
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


[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-02-15 Thread despair at rvx86 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

--- Comment #2 from Absolute Despair  ---
Created attachment 10823
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10823&action=edit
bad shared object

-- 
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


[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-02-15 Thread despair at rvx86 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

--- Comment #3 from Absolute Despair  ---
Created attachment 10824
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10824&action=edit
bad executable

-- 
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


[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-02-15 Thread despair at rvx86 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

--- Comment #4 from Absolute Despair  ---
It also silently fails when linking executable images:

/* test.c */
#include 

main(argc, argv)
char **argv;
{
puts("hi bugzilla");
return 0;
}

compile with:
i686-w64-mingw32-gcc test.c -o test.exe
or
i686-w64-mingw32-clang test.c -o test.exe

(Since Clang is also the system compiler on my platform, I manually renamed the
Clang cross-compiler after building it.)

-- 
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


[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-02-20 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2018-02-20
 CC||nickc at redhat dot com
 Ever confirmed|0   |1

--- Comment #5 from Nick Clifton  ---
Hi Absolute,

  Please could you upload a copy of the object file created by compiling
  test.c and also list the linker command line generated by gcc (or clang).

Cheers
  Nick

-- 
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


[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-03-08 Thread despair at rvx86 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

--- Comment #6 from Absolute Despair  ---
Created attachment 10879
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10879&action=edit
valid object file

This was compiled from the same computer, it's from PSEH library.

-- 
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


[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-03-08 Thread despair at rvx86 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

--- Comment #8 from Absolute Despair  ---
clang version 5.0.1 (tags/RELEASE_501/final)
Target: i686-w64-windows-gnu
Thread model: posix
InstalledDir: /home/despair/mingw32/bin
 "/home/despair/mingw32/bin/clang-5.0" -cc1 -triple i686-w64-windows-gnu
-emit-obj -disable-free -disable-llvm-verifier -discard-value-names
-main-file-name test.c -mrelocation-model static -mthread-model posix
-fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4
-momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb
-resource-dir /home/despair/mingw32/lib/clang/5.0.1 -internal-isystem
/home/despair/mingw32/lib/clang/5.0.1/include -internal-isystem
/home/despair/mingw32/i686-w64-mingw32/sys-root/mingw/include -internal-isystem
/home/despair/mingw32/i686-w64-mingw32/include -internal-isystem
/home/despair/mingw32/include -Oz -fdebug-compilation-dir /home/despair
-ferror-limit 19 -fmessage-length 0 -fno-use-cxa-atexit -fobjc-runtime=gcc
-fdiagnostics-show-option -vectorize-slp -o /tmp/test-0fb7a7.o -x c test.c
clang -cc1 version 5.0.1 based upon LLVM 5.0.1 default target
i686-w64-windows-gnu
ignoring nonexistent directory
"/home/despair/mingw32/i686-w64-mingw32/sys-root/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/despair/mingw32/lib/clang/5.0.1/include
 /home/despair/mingw32/i686-w64-mingw32/include
 /home/despair/mingw32/include
End of search list.
 "/home/despair/mingw32/bin/i686-w64-mingw32-ld" -m i386pe --shared -Bdynamic
-e _DllMainCRTStartup@12 --enable-auto-image-base -o test.dll
/home/despair/mingw32/i686-w64-mingw32/lib/dllcrt2.o
/home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/crtbegin.o
-L/home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0
-L/home/despair/mingw32/i686-w64-mingw32/lib -L/home/despair/mingw32/lib
-L/home/despair/mingw32/i686-w64-mingw32/sys-root/mingw/lib /tmp/test-0fb7a7.o
-lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32
-luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt
/home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/crtend.o
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283
zero vma section reloc detected: `.text' #0 f=283

-- 
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


[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-03-08 Thread despair at rvx86 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

--- Comment #7 from Absolute Despair  ---
Using built-in specs.
COLLECT_GCC=i686-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/home/despair/mingw32/libexec/gcc/i686-w64-mingw32/7.2.0/lto-wrapper
Target: i686-w64-mingw32
Configured with: ../gcc-7.2.0/configure --target=i686-w64-mingw32
--disable-multilib --prefix=/home/despair/mingw32
--with-sysroot=/home/despair/mingw32 --enable-targets=all --enable-shared
--enable-static --enable-languages=c,c++,fortran,lto
--enable-libstdcxx-time=yes --enable-threads=win32 --enable-libgomp
--enable-libatomic --enable-lto --enable-graphite --enable-checking=release
--enable-fully-dynamic-string --enable-version-specific-runtime-libs
--enable-libstdcxx-filesystem-ts=yes --enable-sjlj-exceptions
--disable-libstdcxx-pch --disable-libstdcxx-debug --disable-bootstrap
--disable-win32-registry --disable-rpath --disable-nls --disable-werror
--disable-symvers --with-arch-32=i686 --with-arch-64=opteron
--with-tune32=generic --with-tune-64=core2 --with-system-zlib
--with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local
--with-isl=/usr/local --with-pkgversion='i686-win32-sjlj-rev2, Built by Rick V.
for DMS Studios' --with-bugurl=https://bug-grill.rvx86.net
--with-diagnostics-color=always CC=cc CXX=c++ CFLAGS='-Ofast -march=native
-mfpmath=sse -fPIC -fno-stack-protector' CXXFLAGS='-Ofast -march=native
-mfpmath=sse -fPIC -fno-stack-protector'
Thread model: win32
gcc version 7.2.0 (i686-win32-sjlj-rev2, Built by Rick V. for DMS Studios) 
COLLECT_GCC_OPTIONS='-v' '-shared' '-Os' '-o' 'test.dll' '-mtune=generic'
'-march=i686'
 /home/despair/mingw32/libexec/gcc/i686-w64-mingw32/7.2.0/cc1 -quiet -v
-U_REENTRANT test.c -quiet -dumpbase test.c -mtune=generic -march=i686 -auxbase
test -Os -version -o /tmp//ccbMz3Uf.s
GNU C11 (i686-win32-sjlj-rev2, Built by Rick V. for DMS Studios) version 7.2.0
(i686-w64-mingw32)
compiled by GNU C version 4.2.1 Compatible OpenBSD Clang 5.0.1
(tags/RELEASE_501/final), GMP version 6.1.2, MPFR version 3.1.5-p2, MPC version
0.9, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/home/despair/mingw32/usr/local/include"
ignoring duplicate directory "/home/despair/mingw32/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include
 /home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/include-fixed

/home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/include
End of search list.
GNU C11 (i686-win32-sjlj-rev2, Built by Rick V. for DMS Studios) version 7.2.0
(i686-w64-mingw32)
compiled by GNU C version 4.2.1 Compatible OpenBSD Clang 5.0.1
(tags/RELEASE_501/final), GMP version 6.1.2, MPFR version 3.1.5-p2, MPC version
0.9, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: acc20780a3d1620b21b49ec3e5eaf928
COLLECT_GCC_OPTIONS='-v' '-shared' '-Os' '-o' 'test.dll' '-mtune=generic'
'-march=i686'

/home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/bin/as
-v -o /tmp//cc37ik15.o /tmp//ccbMz3Uf.s
GNU assembler version 2.30 (i686-w64-mingw32) using BFD version (GNU Binutils)
2.30
COMPILER_PATH=/home/despair/mingw32/libexec/gcc/i686-w64-mingw32/7.2.0/:/home/despair/mingw32/libexec/gcc/i686-w64-mingw32/7.2.0/:/home/despair/mingw32/libexec/gcc/i686-w64-mingw32/:/home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/:/home/despair/mingw32/lib/gcc/i686-w64-mingw32/:/home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/bin/
LIBRARY_PATH=/home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/:/home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/lib/../lib/:/home/despair/mingw32/mingw/lib/../lib/:/home/despair/mingw32/lib/gcc/i686-w64-mingw32/7.2.0/../../../../i686-w64-mingw32/lib/:/home/despair/mingw32/mingw/lib/
COLLECT_GCC_OPTIONS='-v' '-shared' '-Os' '-o' 'test.dll' '-mtune=generic'
'-march=i686'
 /home/despair/mingw32/libexec/gcc/i686-w64-mingw32/7.2.0/collect2 -plugin
/home/despair/mingw32/libexec/gcc/i686-w64-mingw32/7.2.0/liblto_plugin.so
-plugin-opt=/home/despair/mingw32/libexec/gcc/i686-w64-mingw32/7.2.0/lto-wrapper
-plugin-opt=-fresolution=/tmp//ccd5RtbF.res -plugin-opt=-pass-through=-lmingw32
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex
-plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-ladvapi32
-plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32
-plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lmingw32
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex
-plugin-opt=-pass-through=-lmsvcrt --sysroot=/home/despair/mingw32 -m i3

[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-03-08 Thread despair at rvx86 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

--- Comment #10 from Absolute Despair  ---
Created attachment 10881
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10881&action=edit
GCC compiler output

-- 
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


[Bug ld/22846] i686-w64-mingw32 cross linker generates truncated binary image

2018-03-08 Thread despair at rvx86 dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=22846

--- Comment #9 from Absolute Despair  ---
Created attachment 10880
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10880&action=edit
clang compiler output

-- 
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