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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to