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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils