[Bug ld/4267] [2.18 regression] ld segfaults building gcc-4.2's debug libstdc++
--- Additional Comments From doko at debian dot org 2007-03-25 14:21 --- please see http://people.ubuntu.com/~doko/tmp/libstd++-v3-powerpc.tar.bz2 http://people.ubuntu.com/~doko/tmp/libstdc++-v3-sparc.tar.bz2 the linker command line is in the collect2.sh file; I see another segfault on sparc-linux-gnu the powerpc binutils are configured using --enable-targets=powerpc64-linux-gnu, the sparc binutils using --enable-targets=sparc-linux-gnu Matthias -- What|Removed |Added Status|WAITING |NEW http://sourceware.org/bugzilla/show_bug.cgi?id=4267 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/4110] Broken object file crashes nm
--- Additional Comments From sliedes at cc dot hut dot fi 2007-03-25 17:13 --- Sorry for taking some time to reply. It seems I can't reproduce the SEGV anymore myself (don't know what changed), but I do get a valgrind error. And I also have a log of nm crashing twice on that input file. By the way now that I test I also get the same Valgrind error with broken3.o and broken4.o. It seems the uninitialized variable has to be still idx->shdr as probably was the case with broken4.o, however I can't get that either to crash any more. Here's what I get from Valgrind: -- $ valgrind --db-attach=yes binutils/nm-new ~/bug/nm-broken6.o ==15602== Memcheck, a memory error detector. ==15602== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==15602== Using LibVEX rev 1732, a library for dynamic binary translation. ==15602== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==15602== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation framework. ==15602== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==15602== For more details, rerun with: -v ==15602== BFD: /home/sliedes/bug/nm-broken6.o: invalid string offset 798 >= 8 for section `.group' ==15602== Conditional jump or move depends on uninitialised value(s) ==15602==at 0x433A71: bfd_section_from_shdr (elf.c:2181) ==15602==by 0x42C1C7: bfd_elf64_object_p (elfcode.h:850) ==15602==by 0x41160E: bfd_check_format_matches (format.c:240) ==15602==by 0x403F89: display_file (nm.c:1179) ==15602==by 0x404BB5: main (nm.c:1622) ==15602== ==15602== Attach to debugger ? --- [Return/N/n/Y/y/C/c] y starting debugger ==15602== starting debugger with cmd: /usr/bin/gdb -nw /proc/15859/fd/1014 15859 GNU gdb 6.6-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... Using host libthread_db library "/usr/lib/debug/libthread_db.so.1". Attaching to program: /proc/15859/fd/1014, process 15859 Reading symbols from /usr/lib/valgrind/amd64-linux/vgpreload_core.so...done. Loaded symbols for /usr/lib/valgrind/amd64-linux/vgpreload_core.so Reading symbols from /usr/lib/valgrind/amd64-linux/vgpreload_memcheck.so...done. Loaded symbols for /usr/lib/valgrind/amd64-linux/vgpreload_memcheck.so Reading symbols from /usr/lib/debug/libc.so.6...done. Loaded symbols for /usr/lib/debug/libc.so.6 Reading symbols from /lib/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.3.6.so...done. done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 0x00433a71 in bfd_section_from_shdr (abfd=0x4d5c118, shindex=1) at elf.c:2181 2181 if (idx->shdr != NULL (gdb) print idx $1 = (Elf_Internal_Group *) 0x4d5c9f0 (gdb) print *idx $2 = {shdr = 0x0, flags = 0} (gdb) l 2176 idx += n_elt; 2177 while (--n_elt != 0) 2178{ 2179 --idx; 2180 2181 if (idx->shdr != NULL 2182 && (s = idx->shdr->bfd_section) != NULL 2183 && elf_next_in_group (s) != NULL) 2184{ 2185 elf_next_in_group (hdr->bfd_section) = s; (gdb) -- -- http://sourceware.org/bugzilla/show_bug.cgi?id=4110 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/3351] aborting at elflink.c line 6778 in elf_link_check_versioned_symbol
--- Additional Comments From tbm at cyrius dot com 2007-03-25 19:22 --- (In reply to comment #13) > Your libgcc from GHDL is wrong. It should be built in the same way as the one > in > gcc. > > Here is a linker patch to avoid crash: > > http://sourceware.org/ml/binutils/2006-10/msg00161.html What's the status of this patch? -- http://sourceware.org/bugzilla/show_bug.cgi?id=3351 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/3351] aborting at elflink.c line 6778 in elf_link_check_versioned_symbol
--- Additional Comments From hjl at lucon dot org 2007-03-25 20:21 --- (In reply to comment #14) > (In reply to comment #13) > > Your libgcc from GHDL is wrong. It should be built in the same way as the > > one in > > gcc. > > > > Here is a linker patch to avoid crash: > > > > http://sourceware.org/ml/binutils/2006-10/msg00161.html > > What's the status of this patch? It is fixed in the Linux binutils 2.17.50.0.6 or newer. > -- http://sourceware.org/bugzilla/show_bug.cgi?id=3351 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/3351] aborting at elflink.c line 6778 in elf_link_check_versioned_symbol
--- Additional Comments From tbm at cyrius dot com 2007-03-25 21:13 --- (In reply to comment #15) > > What's the status of this patch? > > It is fixed in the Linux binutils 2.17.50.0.6 or newer. I was wondering about FSF binutils. -- http://sourceware.org/bugzilla/show_bug.cgi?id=3351 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/4275] New: nm does not list dynamic symbols on AIX
This repros with the nm from the AIX toolbox (version 2.14), but it also repros with a copy of nm I built as part of a cross compiler (version 2.17 from FC6 64bit to AIX 5.3.0.0). On Linux, even after a binary has been stripped, the dynamic symbols can still be retrieved. The following commands show this with hello world: [EMAIL PROTECTED] ~]$ gcc hello.c -o hello [EMAIL PROTECTED] ~]$ strip hello [EMAIL PROTECTED] ~]$ nm hello nm: hello: no symbols [EMAIL PROTECTED] ~]$ nm -D hello w __gmon_start__ U __libc_start_main U puts [EMAIL PROTECTED] ~]$ On AIX, nm does not display these symbols, even though the native dump program can still access them: [EMAIL PROTECTED] ~]$ gcc hello.c -o hello [EMAIL PROTECTED] ~]$ /opt/freeware/bin/nm hello | head 11f0 t 100069fc T .$RESTF14 10006a00 T .$RESTF15 10006a04 T .$RESTF16 10006a08 T .$RESTF17 10006a0c T .$RESTF18 10006a10 T .$RESTF19 10006a14 T .$RESTF20 10006a18 T .$RESTF21 10006a1c T .$RESTF22 [EMAIL PROTECTED] ~]$ /opt/freeware/bin/nm hello -D | head /opt/freeware/bin/nm: hello: No symbols [EMAIL PROTECTED] ~]$ strip hello [EMAIL PROTECTED] ~]$ /opt/freeware/bin/nm hello | head /opt/freeware/bin/nm: hello: no symbols [EMAIL PROTECTED] ~]$ /opt/freeware/bin/nm hello -D | head /opt/freeware/bin/nm: hello: No symbols [EMAIL PROTECTED] ~]$ dump -T hello hello: ***Loader Section*** ***Loader Symbol Table Information*** [Index] Value Scn IMEX Sclass Type IMPid Name [0] 0x2b9c 0x0002 0x00 0x050x1 0x __rtinit [1] 0xe008 0x 0x08 0x070x0 0x0001 ___memset [2] 0xf000 0x 0x08 0x070x0 0x0001 ___memmove [3] 0x 0x 0x08 0x050x0 0x0001 errno [4] 0x 0x 0x08 0x0a0x0 0x0001 malloc [5] 0x 0x 0x08 0x0a0x0 0x0001 free [6] 0x 0x 0x08 0x0a0x0 0x0001 exit [7] 0x 0x 0x08 0x0a0x0 0x0001 strlen [8] 0x 0x 0x08 0x0a0x0 0x0001 abort [9] 0x 0x 0x08 0x0a0x0 0x0001 printf [10]0x 0x 0x08 0x0a0x0 0x0001 __strtollmax [11]0x 0x 0x08 0x0a0x0 0x0001 __mod_init [12]0x 0x 0x08 0x050x0 0x0001 __crt0v [13]0x 0x 0x08 0x050x0 0x0001 __malloc_user_defined_name [14]0x2c00 0x0002 0x04 0x0a0x1 0x __start [EMAIL PROTECTED] ~]$ -- Summary: nm does not list dynamic symbols on AIX Product: binutils Version: 2.14 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: kstemen at centeris dot com CC: bug-binutils at gnu dot org GCC build triplet: powerpc-ibm-aix5.3.0.0 GCC host triplet: powerpc-ibm-aix5.3.0.0 GCC target triplet: powerpc-ibm-aix5.3.0.0 http://sourceware.org/bugzilla/show_bug.cgi?id=4275 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/4275] nm does not list dynamic symbols on AIX
--- Additional Comments From kstemen at centeris dot com 2007-03-26 01:23 --- Created an attachment (id=1649) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1649&action=view) The hello world program from AIX already stripped -- http://sourceware.org/bugzilla/show_bug.cgi?id=4275 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/4275] nm does not list dynamic symbols on AIX
--- Additional Comments From kstemen at centeris dot com 2007-03-26 01:23 --- Created an attachment (id=1650) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1650&action=view) hello world source code -- http://sourceware.org/bugzilla/show_bug.cgi?id=4275 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
ld dumps core on siginal 11 - segfault
When I try to link a strata:/home/dr2867/c/modules 1026 $$$ ->as --version GNU assembler 2.15 [FreeBSD] 2004-05-23 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `i386-obrien-freebsd'. strata:/home/dr2867/c/modules 1027 $$$ ->gcc --version gcc (GCC) 3.4.6 [FreeBSD] 20060305 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. strata:/home/dr2867/c/modules 1028 $$$ ->ld --version GNU ld version 2.15 [FreeBSD] 2004-05-23 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. strata:/home/dr2867/c/modules 1029 $$$ ->uname -a FreeBSD strata.xx.org 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Feb 8 11:00:11 PST 2007 [EMAIL PROTECTED] :/usr/obj/usr/src/sys/STRATA i386 strata:/home/dr2867/c/modules 1030 $$$ -> strata:/home/dr2867/c/modules 1032 $$$ ->gcc -N -Ttext 0x7c00 -Wl,-S,--oformat,binary -o cmbr cmbr.s gcc: Internal error: Segmentation fault: 11 (program ld) Please submit a full bug report. See http://gcc.gnu.org/bugs.html> for instructions. strata:/home/dr2867/c/modules 1033 $$$ ->cat cmbr.s # # Custom USB Master Boot Record # # All this does is print a message and hangs # the computer. # # WARNING # Watch out for software engineers with a sense # of humor. ;-) # .set LOAD, 0x7c00 # Load Address .set STACK, 0x7b00 # Stack Address .set PTOFF, 0x1be # Partition Table Offset .set MAGIC, 0xaa55 # Magic Code for Bootable Sector .global main# Entry Point .code16 # set the segment registers for flat memory access # Set the segment registers for our operations main: cld # String Operations Increment xorw %ax, %ax # Zero AX movw %ax, %es # and copy it to ES reg movw %ax, %ds # then the DS reg movw %ax, %ss # and SS reg too movw $STACK, %sp# Set the stack pointer set_msg:movw $msg_nb, %si # Set the message to display # Display a message on the console disp_msg: lodsb testb %al, %al jz hang_system movw $0x0007, %bx movb $0x0e, %ah int $0x10 jmp disp_msg # Hang the system hang_system:jmp hang_system msg_nb: .asciz "Device not bootable" .org PTOFF-1, 0x90 flags: .byte 0x00 partbl: .fill 0x10, 0x4, 0x00 .word MAGIC -- Daniel Rudy Why geeks like computers: look chat date touch grep make unzip strip view finger mount fcsk more fcsk yes spray umount sleep ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/4277] New: BFD reports internal error at elflink.c in elf_link_output_extsym
OS: openSUSE 10.2 x86_64 kernel: vanilla 2.6.20.3GNU ld version 2.17.50.0.5 20060927 (SUSE Linux) Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. CPU: AMD Turion 64 > ld --version GNU ld version 2.17.50.0.5 20060927 (SUSE Linux) Copyright 2005 Free Software Foundation, Inc. > env |grep FLAGS CFLAGS=-O4 -march=k8 -mtune=k8 -pipe -s -ftree-vectorize LDFLAGS=-s -Wl,-O1,-zdynsort,-z,combreloc,-hashval,--as-needed,--enable-new-dtags -Bdirect > cd any_program_src_dir > ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking for C compiler default output... configure: error: C compiler cannot create executables > cat config.log | grep ld configure:2106: gcc -O4 -march=k8 -mtune=k8 -pipe -s -ftree-vectorize -s -Wl,-O1,-zdynsort,-z,combreloc,-hashval,--as-needed,--enable-ne w-dtags -Bdirect conftest.c >&5 /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: BFD 2.17.50.0.5 20060927 (SUSE Linux) internal error, aborting at ../../bfd/elflink.c line 7383 in elf_link_output_extsym /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: Please report this bug. collect2: ld returned 1 exit status > export LDFLAGS="" > ./configure > make > make install no errors. -- Summary: BFD reports internal error at elflink.c in elf_link_output_extsym Product: binutils Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: helllamer at gmail dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=4277 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils