[llvm-bugs] [Bug 34750] New: lld produces a corrupted file header
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 27 11:49:46 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34750
Bug ID: 34750
Summary: lld produces a corrupted file header
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvm-bugs at lists.llvm.org, phosek at chromium.org
Given
test.s:
.section .zed, "a"
.zero 4
test.script:
PHDRS {
foobar PT_LOAD FILEHDR PHDRS;
}
SECTIONS {
. = 0x1000;
.abc : { *(.zed) } : foobar
}
with test.s assembled for x86_64-pc-linux and linking with
ld.lld --script test.script test.o -o t
the file header is corrupted:
% file t
t: data
This works with bfd, gold and lld before r311586
--
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/20170927/52780d5e/attachment.html>
More information about the llvm-bugs
mailing list