https://sourceware.org/bugzilla/show_bug.cgi?id=22369
--- Comment #2 from martin.koegler at chello dot at --- $ cat t.s .file "t.c" .text .globl _main .def _main; .scl 2; .type 32; .endef .seh_proc _main _main: pushq %rbp .seh_pushreg %rbp movq %rsp, %rbp .seh_setframe %rbp, 0 subq $32, %rsp .seh_stackalloc 32 .seh_endprologue movl %ecx, 16(%rbp) cvtsi2ss 16(%rbp), %xmm0 call cosf cvttss2si %xmm0, %eax addq $32, %rsp popq %rbp ret .seh_endproc .ident "GCC: (GNU) 7.2.0" .def cosf; .scl 2; .type 32; .endef $ x86_64-w64-mingw32-as -o t.o t.s $ x86_64-w64-mingw32-ld -o t.exe t.o /usr/lib64/libm.a --no-keep-memory *** Error in `x86_64-w64-mingw32-ld': free(): invalid pointer: 0x0000000000b8a4c0 *** Usespace is openSuSE Leap 42.3. libm is from glibc-devel-static-2.22-8.4.x86_64 http://download.opensuse.org/distribution/leap/42.3/repo/oss/suse Mingw tools are from mingw64-cross-binutils-2.28-2.2.x86_64 http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.3/ -- 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