bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in ld binutils-011024 for hppa64-hp-hpux11.00


From: ross . alexander
Subject: Bug in ld binutils-011024 for hppa64-hp-hpux11.00
Date: Tue, 30 Oct 2001 11:10:37 +0000

I have compiled gcc-3.0.2 --with-gnu-as --with-gnu-ld and are
currently trying to compile X11R6.6.  This compiles libICE
first and then libSM.  As part of the linking of libSM it tries
to link libICE as a reference.  This links fine if the -lICE is not
there.

I am willing to research this more.  The immediate problem
with h->root.u.def.section->output_section = 0x0.  The problem
is I don't know BFD at all, so some pointers would be good.

Many thanks

Ross Alexander


address@hidden 10:40:49
$/opt/cygnus/hppa-000310/H-hppa2.0w-hp-hpux11.00/bin/gdb
/tmp/binutils-011024/ld/ld-new
GNU gdb 4.18-hppa-000310
Copyright 1998 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.  This version of GDB is
supported
for customers of Cygnus Solutions.  Type "show warranty" for details.
This GDB was configured as "hppa2.0w-hp-hpux11.00"...
<0 -Bdynamic -Bshareable -hlibSM.sl.6.0 *.o -L../../exports/lib -lICE
Starting program: /tmp/binutils-011024/ld/ld-new -o ./libSM.sl.6.0
-Bdynamic -Bshareable -hlibSM.sl.6.0 *.o -L../../exports/lib -lICE

Program received signal SIGSEGV, Segmentation fault.
0x40000000000452ec in elf64_hppa_finalize_opd (dyn_h=0x8000000000054fa8,
    data=0x80000000000182d0) at elf64-hppa.c:2113
2113          value = (h->root.u.def.value
(gdb) bt
#0  0x40000000000452ec in elf64_hppa_finalize_opd
(dyn_h=0x8000000000054fa8,
    data=0x80000000000182d0) at elf64-hppa.c:2113
#1  0x4000000000035a18 in bfd_hash_traverse (table=0x800000000002ad20,
    func=0x800000000000f508 <__DTOR_LIST__+7728>, info=0x80000000000182d0)
    at hash.c:493
#2  0x40000000000425a0 in elf64_hppa_dyn_hash_traverse (
    table=0x8000000000097920, func=0x80000000000976d0, info=0x0)
    at elf64-hppa.c:356
#3  0x4000000000045944 in elf64_hppa_finish_dynamic_sections (
    output_bfd=0x800000000002a688, info=0x80000000000182d0)
    at elf64-hppa.c:2434
#4  0x4000000000050118 in bfd_elf64_bfd_final_link
(abfd=0x800000000002a688,
    info=0x80000000000182d0) at elflink.h:5280
#5  0x400000000003f97c in elf64_hppa_final_link (abfd=0x800000000002a688,
    info=0x80000000000182d0) at elf-hppa.h:1243
#6  0x4000000000023b80 in ldwrite () at ldwrite.c:536
#7  0x4000000000020764 in L$0088 () at ldmain.c:420
#8  0xc0000000000270f0 in $START$ () from /usr/lib/pa20_64/dld.sl

Program received signal SIGSEGV, Segmentation fault.
0x40000000000452ec in elf64_hppa_finalize_opd (dyn_h=0x8000000000054fa8,
    data=0x80000000000182d0) at elf64-hppa.c:2113
2113          value = (h->root.u.def.value
(gdb) list
2108    printf("%p\n", h);
2109    printf("%p\n", h->root.u.def.section);
2110    printf("%p\n", h->root.u.def.section->output_section);
2111    */
2112
2113          value = (h->root.u.def.value
2114                   + h->root.u.def.section->output_section->vma
2115                   + h->root.u.def.section->output_offset);
2116
2117          /* The next word is the address of the function.  */
(gdb) print h->root.u.def
$1 = {value = 4611686022722329400, section = 0x8000000000084a80}

(gdb) print h->root.u.def.section
$2 = (struct sec *) 0x8000000000084a80


(gdb) print *h->root.u.def.section
$3 = {name = 0x8000000000082ad9 ".text", id = 75, index = 11,
  next = 0x8000000000084d00, flags = 563, user_set_vma = 1, reloc_done = 0,
  linker_mark = 0, linker_has_input = 0, gc_mark = 0, segment_mark = 0,
  vma = 4611686018427415744, lma = 4611686018427415744, _cooked_size =
107776,
  _raw_size = 107776, output_offset = 0, output_section = 0x0,
  alignment_power = 3, relocation = 0x0, orelocation = 0x0, reloc_count =
0,
  filepos = 27840, rel_filepos = 0, line_filepos = 0, userdata = 0x0,
  contents = 0x0, lineno = 0x0, lineno_count = 0, entsize = 0, comdat =
0x0,
  moving_line_filepos = 0, target_index = 0, used_by_bfd =
0x8000000000084bd8,
  constructor_chain = 0x0, owner = 0x80000000000735a8,
  symbol = 0x8000000000084b78, symbol_ptr_ptr = 0x8000000000084b58,
  link_order_head = 0x0, link_order_tail = 0x0}
(gdb)
---------------------------------------------------------------------------------

Ross Alexander                           "He knows no more about his
MIS - NEC Europe Limited            destiny than a tea leaf knows
Work ph: +44 20 8752 3394         the history of East India Company"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]