[llvm-bugs] [Bug 37011] New: linker script: SIZEOF(.empty.output.section) != 0
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 4 16:40:30 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37011
Bug ID: 37011
Summary: linker script: SIZEOF(.empty.output.section) != 0
Product: lld
Version: unspecified
Hardware: Other
OS: other
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: roland at hack.frob.com
CC: jakehehrlich at google.com, llvm-bugs at lists.llvm.org,
phosek at chromium.org
Created attachment 20159
--> https://bugs.llvm.org/attachment.cgi?id=20159&action=edit
reproducer tar file
The attached reproducer fails with the linker script's ASSERT firing.
Removing the ASSERT and replacing it with `FOO = SIZEOF(.bss);` links valid
output where there is no .bss section (since the output section described in
the linker script turned out to be empty). However, the FOO symbol's st_value
is 2, showing that SIZEOF(.bss) is wrong in a context other than ASSERT.
--
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/20180404/c2cce47f/attachment.html>
More information about the llvm-bugs
mailing list