[llvm-bugs] [Bug 26731] New: lld linker script support needs to handle arithmetic expressions
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 24 18:08:51 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26731
Bug ID: 26731
Summary: lld linker script support needs to handle arithmetic
expressions
Product: lld
Version: unspecified
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: emaste at freebsd.org
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 15942
--> https://llvm.org/bugs/attachment.cgi?id=15942&action=edit
sample test case for linker script arithmetic
Found attempting to link FreeBSD's rtld with lld. The rtld linker script has
the following expression:
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN(0x1000) + (. & (0x1000 - 1));
I've attached a sample test case for this functionality.
lld currently produces the (not particularly informative) error ": expected,
but got ="
--
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/20160225/037bcf19/attachment.html>
More information about the llvm-bugs
mailing list