[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/6511] New: segmentation fault building final object
From: |
frediano dot ziglio at vodafone dot com |
Subject: |
[Bug ld/6511] New: segmentation fault building final object |
Date: |
13 May 2008 12:31:19 -0000 |
I built a cross compiler for an hp-ux 11.00 (quite old, I know).
Build command is
../src/binutils-2.18/configure --host=i386-linux --build=i386-linux
--prefix=$HOME/parisc-linux/parisc --target=hppa64-hp-hpux11.00 --disable-nls
make
make install
during linking I got
$ bt
Program terminated with signal 11, Segmentation fault.
#0 elf64_hppa_finalize_opd (dyn_h=0x8157524, data=0x8107720) at
/home/freddy/parisc-hpux/src/binutils-2.18/bfd/elf64-hppa.c:2174
2174 dynindx = nh->dynindx;
(gdb) bt
#0 elf64_hppa_finalize_opd (dyn_h=0x8157524, data=0x8107720) at
/home/freddy/parisc-hpux/src/binutils-2.18/bfd/elf64-hppa.c:2174
#1 0x08075b55 in bfd_hash_traverse (table=0x811974c, func=0x8082eb0
<elf64_hppa_finalize_opd>, info=0x8107720)
at /home/freddy/parisc-hpux/src/binutils-2.18/bfd/hash.c:583
#2 0x080826b6 in elf64_hppa_dyn_hash_traverse (table=0x0, func=0,
info=0x8119638) at
/home/freddy/parisc-hpux/src/binutils-2.18/bfd/elf64-hppa.c:357
#3 0x080826e3 in elf64_hppa_finish_dynamic_sections (output_bfd=0x8118eb8,
info=0x8107720)
at /home/freddy/parisc-hpux/src/binutils-2.18/bfd/elf64-hppa.c:2434
#4 0x080a24f4 in bfd_elf_final_link (abfd=0x8118eb8, info=0x8107720) at
/home/freddy/parisc-hpux/src/binutils-2.18/bfd/elflink.c:10914
#5 0x08084d1f in elf64_hppa_final_link (abfd=0x8118eb8, info=0x8107720) at
/home/freddy/parisc-hpux/src/binutils-2.18/bfd/elf-hppa.h:1414
#6 0x0805d455 in ldwrite () at
/home/freddy/parisc-hpux/src/binutils-2.18/ld/ldwrite.c:558
#7 0x0805c9b0 in main (argc=779447911, argv=0x6c697562) at
/home/freddy/parisc-hpux/src/binutils-2.18/ld/ldmain.c:468
$ info reg
eax 0x0 0
ecx 0x8119638 135370296
edx 0x0 0
ebx 0xbf82b1a0 -1081953888
esp 0xbf82b180 0xbf82b180
ebp 0xbf82b218 0xbf82b218
esi 0x8157524 135623972
edi 0x811b670 135378544
eip 0x8082f8e 0x8082f8e <elf64_hppa_finalize_opd+222>
eflags 0x246 [ PF ZF IF ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
$ disasm
0x08082f7f <elf64_hppa_finalize_opd+207>: mov %ebx,0x4(%esp)
0x08082f83 <elf64_hppa_finalize_opd+211>: mov 0x28(%edx),%eax
0x08082f86 <elf64_hppa_finalize_opd+214>: mov %eax,(%esp)
0x08082f89 <elf64_hppa_finalize_opd+217>: call 0x8076960
<bfd_link_hash_lookup>
0x08082f8e <elf64_hppa_finalize_opd+222>: mov 0x24(%eax),%eax
<---------
0x08082f91 <elf64_hppa_finalize_opd+225>: mov 0xffffffcc(%ebp),%ebx
0x08082f94 <elf64_hppa_finalize_opd+228>: mov %eax,%edx
0x08082f96 <elf64_hppa_finalize_opd+230>: sar $0x1f,%edx
0x08082f99 <elf64_hppa_finalize_opd+233>: mov %eax,%edx
0x08082f9b <elf64_hppa_finalize_opd+235>: mov 0xffffffc8(%ebp),%esi
0x08082f9e <elf64_hppa_finalize_opd+238>: mov $0x0,%eax
0x08082fa3 <elf64_hppa_finalize_opd+243>: add $0x82,%eax
so I think bfd_link_hash_lookup returned NULL ...
Tell me if you need other informations.
Regards
Frediano Ziglio
--
Summary: segmentation fault building final object
Product: binutils
Version: 2.18
Status: NEW
Severity: normal
Priority: P3
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: frediano dot ziglio at vodafone dot com
CC: bug-binutils at gnu dot org
GCC build triplet: i386-linux
GCC host triplet: i386-linux
GCC target triplet: hppa64-hp-hpux11.00
http://sourceware.org/bugzilla/show_bug.cgi?id=6511
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/6511] New: segmentation fault building final object,
frediano dot ziglio at vodafone dot com <=
- [Bug ld/6511] segmentation fault building final object, nickc at redhat dot com, 2008/05/21
- [Bug ld/6511] segmentation fault building final object, nickc at redhat dot com, 2008/05/21
- [Bug ld/6511] segmentation fault building final object, frediano dot ziglio at vodafone dot com, 2008/05/21
- [Bug ld/6511] segmentation fault building final object, nickc at redhat dot com, 2008/05/21
- [Bug ld/6511] segmentation fault building final object, frediano dot ziglio at vodafone dot com, 2008/05/21
- [Bug ld/6511] segmentation fault building final object, nickc at redhat dot com, 2008/05/22
- [Bug ld/6511] segmentation fault building final object, nickc at redhat dot com, 2008/05/22
- [Bug ld/6511] segmentation fault building final object, nickc at redhat dot com, 2008/05/22
- [Bug ld/6511] segmentation fault building final object, frediano dot ziglio at vodafone dot com, 2008/05/22