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: unassignedb...@nondot.org Reporter: ema...@freebsd.org CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs