[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/13900] New: linking helloaout.c in cris testsuite causes the lin
From: |
vapier at gentoo dot org |
Subject: |
[Bug ld/13900] New: linking helloaout.c in cris testsuite causes the linker to segfault |
Date: |
Sat, 24 Mar 2012 18:11:06 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13900
Bug #: 13900
Summary: linking helloaout.c in cris testsuite causes the
linker to segfault
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
Host: x86_64-linux-gnu
Target: cris-elf
$ cris-elf-gcc ../../sim/testsuite/sim/cris/c/helloaout.c \
-O2 -L/usr/local/src/gnu/sourceware/build/build-cris/ld -sim3 \
-Wl,-mcrisaout -sim -Ttext=0 -lm -o helloaout.c.x -Bld
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
$ gdb ld/ld core
Reading symbols from
/usr/local/src/gnu/sourceware/build/build-cris/ld/ld...done.
[New LWP 20813]
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `ld/ld -mcriself --gc-sections -o helloaout.c.x
/usr/lib/gcc/cris-elf/4.5.3/../.'.
Program terminated with signal 11, Segmentation fault.
#0 aout_get_external_symbols (abfd=0x1b4fd30) at ../../../bfd/aoutx.h:1300
1300 count = exec_hdr (abfd)->a_syms / EXTERNAL_NLIST_SIZE;
(gdb) bt
#0 aout_get_external_symbols (abfd=0x1b4fd30) at ../../../bfd/aoutx.h:1300
#1 0x0000000000441ef0 in aout_link_check_archive_element (abfd=0x1b4fd30,
info=0x702c40, pneeded=0x7fffc8306b2c) at
../../../bfd/aoutx.h:3410
#2 0x00000000004356aa in _bfd_generic_link_add_archive_symbols
(abfd=0x1b4efd0, info=0x702c40, checkfn=0x441ed0
<aout_link_check_archive_element>) at ../../../bfd/linker.c:1131
#3 0x00000000004119da in load_symbols (place=<optimized out>, entry=0x1af5320)
at ../../../ld/ldlang.c:2807
#4 load_symbols (entry=0x1af5320, place=<optimized out>) at
../../../ld/ldlang.c:2672
#5 0x00000000004126b3 in open_input_bfds (s=0x1af5320, mode=OPEN_BFD_FORCE) at
../../../ld/ldlang.c:3267
#6 0x000000000041257e in open_input_bfds (s=0x1af5300, mode=OPEN_BFD_NORMAL)
at ../../../ld/ldlang.c:3219
#7 0x0000000000414b2a in lang_process () at ../../../ld/ldlang.c:6541
#8 0x0000000000403c6f in main (argc=0x19, argv=0x7fffc8306e38) at
../../../ld/ldmain.c:393
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/13900] New: linking helloaout.c in cris testsuite causes the linker to segfault,
vapier at gentoo dot org <=