[Bug gold/16992] libQtGui linked with gold crashes all Qt programs on startup

2015-02-16 Thread manisandro at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16992

Sandro Mani  changed:

   What|Removed |Added

 CC||manisandro at gmail dot com

-- 
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 binutils/29006] New: alloc(): invalid size (unsorted) with -fstack-protector -lssp

2022-03-29 Thread manisandro at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29006

Bug ID: 29006
   Summary: alloc(): invalid size (unsorted) with
-fstack-protector -lssp
   Product: binutils
   Version: 2.38
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: manisandro at gmail dot com
  Target Milestone: ---

I'm trying to build mingw-llvm-1.14.0 [1] with
mingw-binutils-2.38-1.fc37.x86_64, mingw-gcc-12.0.1-1.fc37.x86_64.

[1] https://smani.fedorapeople.org/mingw-llvm-14.0.0-1.fc37.src.rpm

Linking llvm-cvtres.exe fails with 

malloc(): invalid size (unsorted)
collect2: fatal error: ld terminated with signal 6 [Aborted], core dumped
compilation terminated.

Reduced command line:

$ i686-w64-mingw32-g++ -fstack-protector -lssp -Wl,--whole-archive
CMakeFiles/llvm-cvtres.dir/objects.a -Wl,--no-whole-archive -o
../../bin/llvm-cvtres.exe @CMakeFiles/llvm-cvtres.dir/linklibs.rsp

Note: Error only appears if both -fstack-protector and -lssp are present.
Appears to be a regression since mingw-binutils-2.37-5.fc37.

Valgrind says:

$ valgrind i686-w64-mingw32-g++ -fstack-protector -lssp -Wl,--whole-archive
CMakeFiles/llvm-cvtres.dir/objects.a -Wl,--no-whole-archive -o
../../bin/llvm-cvtres.exe @CMakeFiles/llvm-cvtres.dir/linklibs.rsp
==794194== Memcheck, a memory error detector
==794194== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==794194== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==794194== Command: i686-w64-mingw32-g++ -fstack-protector -lssp
-Wl,--whole-archive CMakeFiles/llvm-cvtres.dir/objects.a -Wl,--no-whole-archive
-o ../../bin/llvm-cvtres.exe @CMakeFiles/llvm-cvtres.dir/linklibs.rsp
==794194== 
malloc(): invalid size (unsorted)
collect2: fatal error: ld terminated with signal 6 [Aborted], core dumped
compilation terminated.
[sandro@PC4 llvm-cvtres]$ valgrind --trace-children=yes i686-w64-mingw32-g++
-fstack-protector -lssp -Wl,--whole-archive
CMakeFiles/llvm-cvtres.dir/objects.a -Wl,--no-whole-archive -o
../../bin/llvm-cvtres.exe @CMakeFiles/llvm-cvtres.dir/linklibs.rsp
==794496== Memcheck, a memory error detector
==794496== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==794496== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==794496== Command: i686-w64-mingw32-g++ -fstack-protector -lssp
-Wl,--whole-archive CMakeFiles/llvm-cvtres.dir/objects.a -Wl,--no-whole-archive
-o ../../bin/llvm-cvtres.exe @CMakeFiles/llvm-cvtres.dir/linklibs.rsp
==794496== 
==794496== Memcheck, a memory error detector
==794496== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==794496== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==794496== Command: /usr/bin/i686-w64-mingw32-g++ -fstack-protector -lssp
-Wl,--whole-archive CMakeFiles/llvm-cvtres.dir/objects.a -Wl,--no-whole-archive
-o ../../bin/llvm-cvtres.exe @CMakeFiles/llvm-cvtres.dir/linklibs.rsp
==794496== 
==794497== Memcheck, a memory error detector
==794497== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==794497== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==794497== Command: /usr/libexec/gcc/i686-w64-mingw32/12.0.1/collect2 -plugin
/usr/libexec/gcc/i686-w64-mingw32/12.0.1/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/i686-w64-mingw32/12.0.1/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccimcNFc.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=-lkernel32
-plugin-opt=-pass-through=-lpthread -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 -plugin-opt=-pass-through=-lkernel32
--sysroot=/usr/i686-w64-mingw32/sys-root -m i386pe -Bdynamic -u
___register_frame_info -u ___deregister_frame_info -o ../../bin/llvm-cvtres.exe
/usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/crt2.o
/usr/lib/gcc/i686-w64-mingw32/12.0.1/crtbegin.o
-L/usr/lib/gcc/i686-w64-mingw32/12.0.1
-L/usr/lib/gcc/i686-w64-mingw32/12.0.1/../../../../i686-w64-mingw32/lib/../lib
-L/usr/i686-w64-mingw32/sys-root/mingw/lib/../lib
-L/usr/lib/gcc/i686-w64-mingw32/12.0.1/../../../../i686-w64-mingw32/lib
-L/usr/i686-w64-mingw32/sys-root/mingw/lib @/tmp/ccqLXUyr -lssp_nonshared -lssp
-lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lkernel32 -lpthread
-ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname
-lmingwex -lmsvcrt -lkernel32 /usr/lib/gcc/i686-w64-mingw32

[Bug binutils/29006] alloc(): invalid size (unsorted) with -fstack-protector -lssp

2022-04-26 Thread manisandro at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29006

--- Comment #2 from Sandro Mani  ---
Hi Nick, sorry for the late reply, I missed your comment! Just applied to
mingw-binutils in Fedora and mingw-llvm is now building fine, thanks!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/23061] objcopy segfault in coff_mangle_symbols

2018-08-08 Thread manisandro at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23061

Sandro Mani  changed:

   What|Removed |Added

 CC||manisandro at gmail dot com

--- Comment #5 from Sandro Mani  ---
I suppose a similar fix/sanity check is also needed for
a->u.auxent.x_sym.x_tagndx.l: running

mingw-objcopy --only-keep-debug LLVM.dll LLVM.dll.debug

results in:

Program received signal SIGSEGV, Segmentation fault.
0x0044ab5f in coff_mangle_symbols (bfd_ptr=bfd_ptr@entry=0x54c760) at
../../bfd/coffgen.c:842
842   a->u.auxent.x_sym.x_tagndx.l =
(gdb) bt
#0  0x0044ab5f in coff_mangle_symbols (bfd_ptr=bfd_ptr@entry=0x54c760)
at ../../bfd/coffgen.c:842
#1  0x00459ed7 in coff_write_object_contents (abfd=0x54c760) at
../../bfd/coffcode.h:4231
#2  0x004310fe in bfd_close (abfd=0x54c760) at ../../bfd/opncls.c:731
#3  0x00409fa6 in copy_file
(input_filename=input_filename@entry=0x7fffe0b4 "LLVM.dll",
output_filename=output_filename@entry=0x7fffe0bd "LLVM.dll.debug",
input_target=input_target@entry=0x0, 
output_target=, output_target@entry=0x0,
input_arch=input_arch@entry=0x0) at ../../binutils/objcopy.c:3530
#4  0x00404853 in copy_main (argv=, argc=) at ../../binutils/objcopy.c:5478
#5  main (argc=, argv=) at
../../binutils/objcopy.c:5582

-- 
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 binutils/23061] objcopy segfault in coff_mangle_symbols

2018-08-23 Thread manisandro at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23061

--- Comment #7 from Sandro Mani  ---
Hi Nick, thanks, fixes the segfault.

-- 
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 binutils/23573] "Too many open files" and binutils 2.31.1-1

2019-08-06 Thread manisandro at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23573

Sandro Mani  changed:

   What|Removed |Added

 CC||manisandro at gmail dot com

--- Comment #20 from Sandro Mani  ---
For reference, the commit which fixes this is
999d6dff80fab12d22c2a8d91923db6bde7fb3e5

-- 
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/28231] New: relocation truncated to fit: R_X86_64_32S against `.text'

2021-08-15 Thread manisandro at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28231

Bug ID: 28231
   Summary: relocation truncated to fit: R_X86_64_32S against
`.text'
   Product: binutils
   Version: 2.37
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: manisandro at gmail dot com
  Target Milestone: ---

On a current Fedora Rawhide with 

mingw64-binutils-2.37-2.fc36.x86_64
mingw64-gcc-11.2.1-3.fc35.x86_64

The following

typedef struct __A {
} A;

int main(int argc, char** argv) {

A a;

__asm__ __volatile__ (
"leaq   1f, %%rax"  "\n\t"
"1:""\t"
:
/* No outputs */
:
[a] "m" (a)
:
"%rax"
);

return 1;
}


results in 

$ x86_64-w64-mingw32-gcc -o test test.c
/tmp/ccfMmoPi.o:test.c:(.text+0x18): relocation truncated to fit: R_X86_64_32S
against `.text'
collect2: error: ld returned 1 exit status

This is a reduced testcase from mingw-tk, which fails to build due to this. The
full code triggering this [1] asm block.

(Note: I don't know asm well enough to judge whether the asm code in the test
case is a valid test case, I just reduced the full code to the minimum lines
triggering the error. Filing this attemping to fix a FTBFS of mingw-tk)

[1] https://github.com/tcltk/tk/blob/main/win/tkWin32Dll.c#L128

-- 
You are receiving this mail because:
You are on the CC list for the bug.