This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
bfd assertion fail elflink.h:1566
- To: binutils at sourceware dot cygnus dot com
- Subject: bfd assertion fail elflink.h:1566
- From: Patrik Hagglund <patha at ida dot liu dot se>
- Date: Fri, 08 Oct 1999 01:30:35 +0200
- cc: ian at zembu dot com, biedie at my-Deja dot com
Date: Wed, 06 Oct 1999 05:59:45 -0700
From: " " <biedie@my-Deja.com>
I have currently installed gcc 2.95.1 and binutils 2.9.5.0.14.
My system is solaris2.6. I get the following warning/error:
/some_dir/sparc-sun-solaris2.6/bin/ld: bfd assertion fail elflink.h:1566
I had the same problem (symptom).
Ian> You can debug it yourself a bit by setting a breakpoint on _bfd_assert
Ian> and examining the contents of hi to see why the assert is failing.
Here is a backtrace from binutils-991007:
(gdb) bt
#0 bfd_assert (file=0x76f60 "../../bfd/elflink.h", line=1566)
at ../../bfd/bfd.c:679
#1 0x37554 in elf_link_add_object_symbols (abfd=0xf2708, info=0x8baac)
at ../../bfd/elflink.h:1566
#2 0x35a70 in bfd_elf32_bfd_link_add_symbols (abfd=0xf2708, info=0x8baac)
at ../../bfd/elflink.h:74
#3 0x23870 in gldelf32_sparc_try_needed (name=0xf2708 "", force=0)
at eelf32_sparc.c:473
#4 0x235b4 in gldelf32_sparc_after_open () at eelf32_sparc.c:323
#5 0x20ee4 in ldemul_after_open () at ../../ld/ldemul.c:64
#6 0x1b148 in lang_process () at ../../ld/ldlang.c:3855
#7 0x1d684 in main (argc=433152, argv=0xffbedb7c) at ../../ld/ldmain.c:344
(gdb) p *hi
$2 = {root = {root = {next = 0x11ce60,
string = 0x1e0a80 "sigignore@@SYSVABI_1.3", hash = 211402029},
type = bfd_link_hash_indirect, next = 0x1e8170, u = {undef = {
abfd = 0x1c1050}, def = {value = 1839184, section = 0xb84d8}, i = {
link = 0x1c1050, warning = 0xb84d8 ""}, c = {size = 1839184,
p = 0xb84d8}}}, indx = -1, size = 248, dynindx = -1, dynstr_index = 0,
weakdef = 0x0, got = {refcount = -1, offset = 4294967295}, plt = {
refcount = -1, offset = 4294967295}, linker_section_pointer = 0x0,
verinfo = {verdef = 0x16fed8, vertree = 0x16fed8}, vtable_entries_size = 0,
vtable_entries_used = 0x0, vtable_parent = 0x0, type = 2 '\002',
other = 0 '\000', elf_hash_value = 0, elf_link_hash_flags = 9}
(gdb)
Using Sun's ld gives the following error messages:
ld: Software Generation Utilities - Solaris/ELF (3.0)
ld: warning: file ./libgcj.so: section .stabstr: malformed string table, initial or final byte
ld: warning: file ./libgcjgc.so: section .stabstr: malformed string table, initial or final byte
ld: warning: file ./libzgcj.so: section .stabstr: malformed string table, initial or final byte
You can find all object files and the linker binary and command
line at http://www.ida.liu.se/~patha/tmp/sol2.7-bug.tar.bz2 (2.3M)
--
Patrik Hägglund