[PATCH] D37517: [ELF] - Report orphan sections if -verbose given.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 12:29:41 PDT 2017


George Rimar <grimar at accesssoftek.com> writes:

>>Turns out we still can't link the linux kernel:
>>
>>error: ./arch/x86/kernel/vmlinux.lds:652: unable to evaluate expression: input section .head.text has no output section assigned
>
> That is about following line as far I can remember:
> "phys_startup_64 = ABSOLUTE(startup_64 - 0xffffffff80000000);"
> Issue happened because startup_64 was used before .text section it resides in was declared,
> I had just to move this line after output section declaration.

I was able to fix this issue.

>>error: ./arch/x86/kernel/vmlinux.lds:871: at least one side of the expression must be absolute
>>
>
> That should be about something like
> "init_per_cpu__gdt_page = gdt_page + __per_cpu_load";
>
> I fixed it as:
> init_per_cpu__gdt_page = gdt_page + ABSOLUTE(__per_cpu_load);

I am taking a look at this one.

Cheers,
Rafael


More information about the llvm-commits mailing list