------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  
2005-10-11 00:31 -------
Subject: Re:  /lib/libc.so.6: undefined reference to [EMAIL PROTECTED]'

> I can't duplicate your problem:

I was afraid of that.  As I indicated originally, the problem seemed
start file sensitive.

I have the following backtrace on the system that I consistently see
the problem:

(gdb) bt
#0  undefined_symbol (info=0xd727c,
    name=0x19a7e8 "[EMAIL PROTECTED]", abfd=0x118448, section=0x0,
    address=0, error=-1074603408) at ../../src/ld/ldmain.c:1321
#1  0x000669cc in elf_link_output_extsym (h=0x1a05a8, data=0x19a7e8)
    at ../../src/bfd/elflink.c:6349
#2  0x0003d6f4 in bfd_hash_traverse (table=0xe5fc8,
    [EMAIL PROTECTED]: 0x668d8 <elf_link_output_extsym>, info=0xbff2da70)
    at ../../src/bfd/hash.c:484
#3  0x0003dd20 in bfd_link_hash_traverse (table=0xd727c, func=0x19a7e8,
    info=0x118448) at ../../src/bfd/linker.c:610
#4  0x00069564 in bfd_elf_final_link (abfd=0xe3d80, info=0xd727c)
    at ../../src/bfd/elflink.c:8320
#5  0x0004e664 in elf32_hppa_final_link (abfd=0xe3d80, info=0x19a7e8)
    at ../../src/bfd/elf32-hppa.c:3100
#6  0x000283e4 in ldwrite () at ../../src/ld/ldwrite.c:554
#7  0x00025e50 in main (argc=24, argv=0xbff2d6bc) at ../../src/ld/ldmain.c:468

(gdb) p h->root.type
$49 = bfd_link_hash_undefined
(gdb) p h->ref_dynamic
$50 = 1
(gdb) p h->ref_regular
$51 = 0
(gdb) p finfo->info->unresolved_syms_in_shared_libs
$52 = RM_GENERATE_ERROR
(gdb) p finfo->info->shared
$53 = 0
(gdb) p finfo->info->relocatable
$55 = 0

Why is the default to generate errors for undefined symbols in shared
libraries that aren't referenced from the regular files?  Presumably,
when the shared libraries were linked, these references were resolved
or the link was done to ignore unresolved symbols.

Dave


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=1443

------- 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

Reply via email to