[llvm-bugs] [Bug 38790] New: at least one side of the expression must be absolute

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 31 05:26:19 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38790

            Bug ID: 38790
           Summary: at least one side of the expression must be absolute
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: dima at golovin.in
                CC: llvm-bugs at lists.llvm.org

Created attachment 20812
  --> https://bugs.llvm.org/attachment.cgi?id=20812&action=edit
linker script (file is not empty, just a lot of newlines in the beginning)

During vmlinux linking stage LLD complains:

    ld.lld: error: ./arch/x86/kernel/vmlinux.lds:342: at least one side of the
expression must be absolute
    ld.lld: error: ./arch/x86/kernel/vmlinux.lds:343: at least one side of the
expression must be absolute

These are the lines 342 and 343 from vmlinux.lds:

    init_per_cpu__gdt_page = gdt_page + __per_cpu_load;
    init_per_cpu__irq_stack_union = irq_stack_union + __per_cpu_load;

Complete linker script attached.

-- 
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/20180831/df0489d2/attachment.html>


More information about the llvm-bugs mailing list