[llvm-bugs] [Bug 48473] New: linker script symbol not found when undefined symbol is checked with DEFINED()
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 10 06:20:26 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48473
Bug ID: 48473
Summary: linker script symbol not found when undefined symbol
is checked with DEFINED()
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: Laurentiu.Tertan at windriver.com
CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com
When running LLD 11.0.0, the linker terminates with the following error:
ld.lld: error: script.ld:7: symbol not found: __init_base
ld.lld: error: script.ld:7: symbol not found: __init_base
ld.lld: error: script.ld:7: symbol not found: __init_base
The script.ld looks something similar to:
ENTRY(_start)
SECTIONS
{
. = SEGMENT_START("text-segment", (DEFINED(__init_base) ? __init_base : 0));
...
}
It appears that this has been fixed in LLD 12.0.0, but on 11.0.0 it fails. I
assume this is a duplicate bug, but I'm interested in the fix as I would like
to perform a port on LLD 11.0.0.
--
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/20201210/7888efc2/attachment-0001.html>
More information about the llvm-bugs
mailing list