[llvm-bugs] [Bug 30539] New: Assertion failed: (Piece.Live), function getOffset, file .../llvm/tools/lld/ELF/InputSection.cpp, line 619
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 27 07:58:47 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30539
Bug ID: 30539
Summary: Assertion failed: (Piece.Live), function getOffset,
file .../llvm/tools/lld/ELF/InputSection.cpp, line 619
Product: lld
Version: unspecified
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: llvm at sjor.sg
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Building a simple "hello world" binary fails with the assertion error given in
the summary. If clang is not called with -g, or lld is not called with
--gc-sections, the problem disappears. This is llvm & lld trunk, r282489.
$ cat simple.cpp
#include <stdio.h>
int main(void) {
dprintf(1, "Hello, world\n");
}
$ x86_64-unknown-cloudabi-c++ -v simple.cpp -g -o simple
[...]
"/usr/local/bin/x86_64-unknown-cloudabi-ld" -Bstatic --no-dynamic-linker -pie
-zrelro --eh-frame-hdr --gc-sections -o simple
/usr/local/llvm39/bin/../x86_64-unknown-cloudabi/lib/crt0.o
/usr/local/llvm39/bin/../x86_64-unknown-cloudabi/lib/crtbegin.o
-L/usr/local/llvm39/bin/../x86_64-unknown-cloudabi/lib /tmp/simple-813c59.o
-lc++ -lc++abi -lunwind -lc -lcompiler_rt
/usr/local/llvm39/bin/../x86_64-unknown-cloudabi/lib/crtend.o
Assertion failed: (Piece.Live), function getOffset, file
/root/llvm/tools/lld/ELF/InputSection.cpp, line 619.
clang-3.9: error: unable to execute command: Abort trap (core dumped)
clang-3.9: error: linker command failed due to signal (use -v to see
invocation)
The repro.cpio is attached.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160927/007fcb87/attachment-0001.html>
More information about the llvm-bugs
mailing list