[Bug ld/3169] New: ld elf64-ia64.c segfault in set_fptr_entry
I get the following ld segfault on an object file generated by Osprey, an alternative GCC backend for IA64. It fails both with Debian binutils 2.17 and current CVS HEAD. /gcc-lib/ia64-linux-gnu/3.3.6/../../../crti.o symbol.s.o /usr/bin/ld: BFD 2.17 Debian GNU/Linux assertion fail elf64-ia64.c:4874 Segmentation fault (osprey)[EMAIL PROTECTED]:~/src/mpatrol-1.4.8/build/unix$ /home/tbm/scratch/src/ld/ld-new -shared -o libmpa trol.so.1.4 /usr/lib/gcc-lib/ia64-linux-gnu/3.3.6/../../../crti.o symbol.s.o /home/tbm/scratch/src/ld/ld-new: BFD 2.17.50 20060903 assertion fail elf64-ia64.c:4882 Segmentation fault (gdb) run -shared -o libmpatrol.so.1.4 /usr/lib/gcc-lib/ia64-linux-gnu/3.3.6/../../../crti.o symbol.s.o Starting program: /home/tbm/scratch/src/ld/ld-new -shared -o libmpatrol.so.1.4 /usr/lib/gcc-lib/ia64-l inux-gnu/3.3.6/../../../crti.o symbol.s.o /home/tbm/scratch/src/ld/ld-new: BFD 2.17.50 20060903 assertion fail elf64-ia64.c:4882 Program received signal SIGSEGV, Segmentation fault. 0x40080670 in set_fptr_entry (abfd=0x600224f0, info=0x60024a70, dyn_i=0x50, value=86624) at elf64-ia64.c:4203 4203 bfd_put_64 (abfd, value, fptr_sec->contents + dyn_i->fptr_offset); (gdb) where #0 0x40080670 in set_fptr_entry (abfd=0x600224f0, info=0x60024a70, dyn_i=0x50, value=86624) at elf64-ia64.c:4203 #1 0x40082940 in elf64_ia64_relocate_section (output_bfd=0x600224f0, info=0x6000f290, input_bfd=0x6004cfd0, input_section=0x6004f438, contents=0x60062860 "\b 9\016\200\005▒@\005", relocs=0x6004e668, local_syms=0x600316f0, local_sections=0x6007c310) at elf64-ia64.c:4545 #2 0x400bc780 in elf_link_input_bfd (finfo=0x6fffb5f0, input_bfd=0x6004cfd0) at elflink.c:7217 #3 0x400c1d40 in bfd_elf_final_link (abfd=0x600224f0, info=0x6000f290) at elflink.c:8191 #4 0x40081420 in elf64_ia64_final_link (abfd=0x600224f0, info=0x6000f290) at elf64-ia64.c:4467 #5 0x40030310 in ldwrite () at ldwrite.c:548 #6 0x4002a9f0 in main (argc=6, argv=0x6fffb9d8) at ../ld/ldmain.c:481 (gdb) -- Summary: ld elf64-ia64.c segfault in set_fptr_entry Product: binutils Version: 2.18 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: tbm at cyrius dot com CC: bug-binutils at gnu dot org GCC target triplet: ia64-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=3169 --- 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/3169] ld elf64-ia64.c segfault in set_fptr_entry
--- Additional Comments From tbm at cyrius dot com 2006-09-03 10:37 --- Created an attachment (id=1273) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1273&action=view) test case -- http://sourceware.org/bugzilla/show_bug.cgi?id=3169 --- 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/3169] ld elf64-ia64.c segfault in set_fptr_entry
--- Additional Comments From tbm at cyrius dot com 2006-09-03 10:37 --- Created an attachment (id=1274) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1274&action=view) test case -- http://sourceware.org/bugzilla/show_bug.cgi?id=3169 --- 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/3169] ld elf64-ia64.c segfault in set_fptr_entry
--- Additional Comments From tbm at cyrius dot com 2006-09-04 20:42 --- Created an attachment (id=1278) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1278&action=view) preprocessed source -- http://sourceware.org/bugzilla/show_bug.cgi?id=3169 --- 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/3169] ld elf64-ia64.c segfault in set_fptr_entry
--- Additional Comments From tbm at cyrius dot com 2006-09-04 20:42 --- Created an attachment (id=1279) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1279&action=view) asm -- http://sourceware.org/bugzilla/show_bug.cgi?id=3169 --- 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/3169] elfxx-ia64.c doesn't support @ltoff(@fptr(_DYNAMIC#))
--- Additional Comments From tbm at cyrius dot com 2006-09-04 22:18 --- (In reply to comment #6) > _DYNAMIC is a special symbol. I don't think Osprey uses it correctly, if it > should be used by compiler at all. Thanks, I'll let them know about it. -- http://sourceware.org/bugzilla/show_bug.cgi?id=3169 --- 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/3169] elfxx-ia64.c doesn't support @ltoff(@fptr(_DYNAMIC#))
--- Additional Comments From tbm at cyrius dot com 2006-09-13 10:22 --- > > _DYNAMIC is a special symbol. I don't think Osprey uses it correctly, if it > should be used by compiler at all. I just noticed that GCC 4.1 and 4.2 use _DYNAMIC as well and lead to this ld segfault. -- http://sourceware.org/bugzilla/show_bug.cgi?id=3169 --- 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] New: aborting at elflink.c line 6778 in elf_link_check_versioned_symbol
I get the following error from ld on ia64 when building GHDL. It works fine on all other architectures supported by Debian. > gnatlink > /build/buildd/ghdl-0.25+gcc4.1.1/gcc-4.1.1/build/gcc/vhdl/ortho_gcc-main.ali >-o ghdl1 ortho-lang.o gcc-version.o ../gcc/toplev.o ../gcc/libbackend.a >../libcpp/libcpp.a ../libiberty/libiberty.a ../libcpp/libcpp.a >../libiberty/libiberty.a > /usr/bin/ld: BFD 2.17 Debian GNU/Linux assertion fail ../../bfd/elflink.c:6261 > /usr/bin/ld: BFD 2.17 Debian GNU/Linux internal error, aborting at >../../bfd/elflink.c line 6349 in elf_link_check_versioned_symbol > > /usr/bin/ld: Please report this bug. > > collect2: ld returned 1 exit status > gnatlink: cannot call /usr/bin/gcc-4.1 It still fails with current binutils from CVS HEAD. I get: > [EMAIL PROTECTED]:~/src/ghdl-0.25+gcc4.1.1/gcc-4.1.1/build/gcc$ > /home/tbm/src/src/ld/ld-new -dynamic-linker /lib/ld-linux-ia64.so.2 -o ghdl1 > > -L./ vhdl/ortho_gcc.o-lgnat-4.1 -lgcc > /home/tbm/src/src/ld/ld-new: warning: cannot find entry symbol _start; > defaulting to 400010e0 > vhdl/ortho_gcc.o: In function `lang_parse_file': > ortho_gcc.adb:(.text+0x7c2): undefined reference to `ortho_front__parse' > vhdl/ortho_gcc.o: In function `lang_handle_option': > ortho_gcc.adb:(.text+0x9b2): undefined reference to > `ortho_front__decode_option' > /home/tbm/src/src/ld/ld-new: BFD 2.17.50 20061012 assertion fail > elflink.c:6690 > /home/tbm/src/src/ld/ld-new: BFD 2.17.50 20061012 internal error, aborting at > elflink.c line 6778 in elf_link_check_versioned_symbol -- Summary: aborting at elflink.c line 6778 in elf_link_check_versioned_symbol Product: binutils Version: 2.18 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: tbm at cyrius dot com CC: bug-binutils at gnu dot org,wilson at specifix dot com GCC target triplet: ia64-linux-gnu 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
-- What|Removed |Added CC||hjl at lucon dot org 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 2006-10-12 09:37 --- Created an attachment (id=1368) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1368&action=view) object file -- 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 2006-10-12 09:37 --- Created an attachment (id=1369) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1369&action=view) assembler -- 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 2006-10-17 14:36 --- I can still reproduce this. The files are from a standard Debian install and libgcc.a has been built during the GHDL build process. I'll attach them in a .tar.bz2. [EMAIL PROTECTED]:~/src/ghdl-0.25+gcc4.1.1/gcc-4.1.1/build/gcc$ /home/tbm/src/src/ld/ld-new -dynamic-linker /lib/ld-2.3.6.so -o ghdl1 vhdl/ortho_gcc.o /usr/lib/libgnat-4.1.so.1 libgcc.a /home/tbm/src/src/ld/ld-new: warning: cannot find entry symbol _start; defaulting to 40001160 vhdl/ortho_gcc.o: In function `lang_handle_option': /home/tbm/src/ghdl-0.25+gcc4.1.1/gcc-4.1.1/gcc/vhdl/ortho_gcc.adb:85: undefined reference to `ortho_front__decode_option' vhdl/ortho_gcc.o: In function `lang_parse_file': /home/tbm/src/ghdl-0.25+gcc4.1.1/gcc-4.1.1/gcc/vhdl/ortho_gcc.adb:103: undefined reference to `ortho_front__parse' /home/tbm/src/src/ld/ld-new: BFD 2.17.50 20061012 assertion fail elflink.c:6690 /home/tbm/src/src/ld/ld-new: BFD 2.17.50 20061012 internal error, aborting at elflink.c line 6778 in elf_link_check_versioned_symbol /home/tbm/src/src/ld/ld-new: Please report this bug. [EMAIL PROTECTED]:~/src/ghdl-0.25+gcc4.1.1/gcc-4.1.1/build/gcc$ ls -l /lib/ld-2.3.6.so /usr/lib/libgnat-4.1.so.1 libgcc.a -rwxr-xr-x 1 root root 203496 Oct 13 14:01 /lib/ld-2.3.6.so -rw-r--r-- 1 root root 4272960 Oct 9 13:21 /usr/lib/libgnat-4.1.so.1 -rw-r--r-- 1 tbm tbm 565664 Oct 12 00:49 libgcc.a [EMAIL PROTECTED]:~/src/ghdl-0.25+gcc4.1.1/gcc-4.1.1/build/gcc$ -- 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 2006-10-17 14:39 --- The tar file is just too big to be attached. You can grab it from http://cyrius.com/tmp/ld-bug.tar.bz2 -- What|Removed |Added Status|WAITING |NEW 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 2006-10-17 15:26 --- It's Debin's standard 4.1 compiler. There are some patches but I don't think anything related to IA64. I can try with an unchanged FSF GCC if you really want. The libgcc I sent comes from GHDL itself, which is some kind of simulator/compiler based on GCC. [EMAIL PROTECTED]:~$ gcc -v Using built-in specs. Target: ia64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --disable-libssp --with-system-libunwind --enable-checking=release ia64-linux-gnu Thread model: posix gcc version 4.1.2 20061007 (prerelease) (Debian 4.1.1-16) -- 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 2006-10-17 19:10 --- I don't see why these differences would necessary be a "problem". Can you please elaborate? -- 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 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 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 ld/4988] [2.18/HEAD regression] Assertion failures in ld
-- What|Removed |Added CC||tbm at cyrius dot com Status|WAITING |NEW http://sourceware.org/bugzilla/show_bug.cgi?id=4988 --- 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/4988] [2.18/HEAD regression] Assertion failures in ld
--- Additional Comments From tbm at cyrius dot com 2007-10-26 09:39 --- (In reply to comment #4) >Plus of course any other libraries that these libraries need. :-) > > Cheers >Nick Nick, would you be interested in an account on a mipsel box so you could take a look? Unfortunately, it seems that nobody's looking into this issue and this bug is a big problem for Debian/MIPS. Thanks. -- http://sourceware.org/bugzilla/show_bug.cgi?id=4988 --- 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/4988] [2.18/HEAD regression] Assertion failures in ld
--- Additional Comments From tbm at cyrius dot com 2007-10-26 12:29 --- Actually, it seems this problem no longer shows up on HEAD. -- http://sourceware.org/bugzilla/show_bug.cgi?id=4988 --- 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/4988] [2.18/HEAD regression] Assertion failures in ld
--- Additional Comments From tbm at cyrius dot com 2007-10-26 15:56 --- (In reply to comment #7) > Actually, it seems this problem no longer shows up on HEAD. However, I can reproduce it with the 2.18 branch as well as with 2.18.50.20070930. I'll try to narrow it down, but CVS makes that a pain. Does anyone have a SVN mirror of the CVS repo? -- http://sourceware.org/bugzilla/show_bug.cgi?id=4988 --- 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/4988] [2.18/HEAD regression] Assertion failures in ld
--- Additional Comments From tbm at cyrius dot com 2007-10-26 17:55 --- The problem is fixed by http://sourceware.org/ml/binutils-cvs/2007-10/msg00087.html which happily applies to 2.18. -- What|Removed |Added CC||drow at false dot org http://sourceware.org/bugzilla/show_bug.cgi?id=4988 --- 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/5398] New: ld: assertion fail elf32-arm.c:3125
I'm getting the following assertation on ARM (old ABI) with ld (both 2.18 and HEAD): 461:[EMAIL PROTECTED]: ~] /usr/bin/ld -lc /usr/bin/ld: BFD (GNU Binutils for Debian) 2.18.20071027 assertion fail ../../bfd/elf32-arm.c:3123 /usr/bin/ld: BFD (GNU Binutils for Debian) 2.18.20071027 assertion fail ../../bfd/elf32-arm.c:3123 /usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 8100 462:[EMAIL PROTECTED]: ~] ld /lib/libm.so.6 ld: BFD (GNU Binutils for Debian) 2.18.20071027 assertion fail ../../bfd/elf32-arm.c:3123 ld: warning: cannot find entry symbol _start; defaulting to 8100 You can reproduce this with the attached file: (sid)1894:[EMAIL PROTECTED]: ~/src/binutils/ld] ./ld-new ~/libm-2.6.1.so ./ld-new: warning: libc.so.6, needed by /home/tbm/libm-2.6.1.so, not found (try using -rpath or -rpath-link) ./ld-new: BFD (GNU Binutils) 2.18.50.20071124 assertion fail elf32-arm.c:3125 ./ld-new: warning: cannot find entry symbol _start; defaulting to 8100 /home/tbm/libm-2.6.1.so: undefined reference to [EMAIL PROTECTED]' ... -- Summary: ld: assertion fail elf32-arm.c:3125 Product: binutils Version: 2.19 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: tbm at cyrius dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=5398 --- 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/5398] ld: assertion fail elf32-arm.c:3125
--- Additional Comments From tbm at cyrius dot com 2007-11-24 19:02 --- Created an attachment (id=2107) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2107&action=view) libm ARM Debian -- http://sourceware.org/bugzilla/show_bug.cgi?id=5398 --- 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/5398] ld: assertion fail elf32-arm.c:3125
-- What|Removed |Added GCC target triplet||arm-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=5398 --- 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/5398] ld: assertion fail elf32-arm.c:3125
--- Additional Comments From tbm at cyrius dot com 2007-11-28 16:52 --- Nick, Thanks for looking at this issue. Your patch works for me. The assertion is gone and the test suite doesn't have any new failures. Can you put this into HEAD and the 2.18 branch please? -- What|Removed |Added Status|WAITING |NEW http://sourceware.org/bugzilla/show_bug.cgi?id=5398 --- 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