[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/14754] New: referring to undefined symbol results in internal
From: |
vapier at gentoo dot org |
Subject: |
[Bug gold/14754] New: referring to undefined symbol results in internal error instead of helpful error message |
Date: |
Mon, 22 Oct 2012 20:22:32 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=14754
Bug #: 14754
Summary: referring to undefined symbol results in internal
error instead of helpful error message
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
AssignedTo: address@hidden
ReportedBy: address@hidden
CC: address@hidden
Classification: Unclassified
Target: x86_64-linux-gnu
with binutils 2.23.51.0.3, this code:
$ cat test.s
.type foo,%gnu_indirect_function
.globl _start
_start:
call foo
will cause gold to hit an internal error:
$ gcc test.s -nostdlib
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld:
internal error in dynsym_index, at
/var/tmp/portage/sys-devel/binutils-2.23.51.0.3/work/binutils-2.23.51.0.3/gold/symtab.h:380
collect2: error: ld returned 1 exit status
the bfd linker issues a good error message:
$ gcc test.s -nostdlib
/tmp/ccNn3sd8.o: In function `_start':
(.text+0x1): undefined reference to `foo'
collect2: error: ld returned 1 exit status
--
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gold/14754] New: referring to undefined symbol results in internal error instead of helpful error message,
vapier at gentoo dot org <=