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

Reply via email to