[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/21529] New: internal error, aborting at ../../bfd/linker.c:2162
From: |
fero.4.22 at gmail dot com |
Subject: |
[Bug ld/21529] New: internal error, aborting at ../../bfd/linker.c:2162 in _bfd_generic_link_output_symbols |
Date: |
Mon, 29 May 2017 16:21:03 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21529
Bug ID: 21529
Summary: internal error, aborting at ../../bfd/linker.c:2162 in
_bfd_generic_link_output_symbols
Product: binutils
Version: 2.28
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: fero.4.22 at gmail dot com
Target Milestone: ---
Created attachment 10070
--> https://sourceware.org/bugzilla/attachment.cgi?id=10070&action=edit
small example
Hi.
I have received an internal error when linking an elf to a flat binary, that
contains a globally unique symbol (marked as "u" by nm).
It only happens if I try to produce a flat binary, and works normally when the
result is an elf file.
The symbol is a static variable in a template class (I think it would be the
same if the template is a function, but I haven't tried it...)
I have attached a simple example source file that demonstrates the bug.
You can compile it with the following commands:
g++ -c main.cpp -o main.o
ld main.o --oformat binary -o main.bin -e main
The last command results in:
'ld: BFD (GNU Binutils for Ubuntu) 2.28 internal error, aborting at
../../bfd/linker.c:2162 in _bfd_generic_link_output_symbols
ld: Please report this bug.'
The problem is related to the symbol _ZN3fooILi4EE3barE (foo<4>::bar).
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/21529] New: internal error, aborting at ../../bfd/linker.c:2162 in _bfd_generic_link_output_symbols,
fero.4.22 at gmail dot com <=