[llvm-bugs] [Bug 36297] New: [ELF] - LLD can produce excessive undefined symbols with specific linker script.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 8 05:36:50 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36297
Bug ID: 36297
Summary: [ELF] - LLD can produce excessive undefined symbols
with specific linker script.
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: grimar at accesssoftek.com
CC: llvm-bugs at lists.llvm.org
Imagine following script:
SECTIONS { .bar (a+b) : { *(.stub) } };
And assume that there is no .stub section in object.
"a+b" here is address expression.
We add all symbols referenced by script as undefined
early. ".bar" becomes empty section and removed from output.
a and b though present as undefined in symtab and no error
is produced.
bfd produce error:
test.script:4: non constant or forward reference address expression for section
.bar
gold too:
ld: error: undefined symbol 'a' referenced in expression
ld: error: undefined symbol 'a' referenced in expression
--
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/20180208/68a7c7ad/attachment.html>
More information about the llvm-bugs
mailing list