[llvm-dev] Linking Linux kernel with LLD
George Rimar via llvm-dev
llvm-dev at lists.llvm.org
Mon Feb 20 07:51:51 PST 2017
And I think current issue with "Kernel panic - not syncing: IO-APIC + timer doesn't work!" is also clear.
timer_irq_works(void) never returns 1:
I think it happens because of jiffies (http://www.makelinux.net/books/lkd2/ch10lev1sec3#ch10fig01)
It should have the same address as jiffies_64:
And that is true for BFD linked binary:
10595: ffffffff8140b000 8 OBJECT GLOBAL DEFAULT 8 jiffies
11730: ffffffff8140b000 8 OBJECT GLOBAL DEFAULT 8 jiffies_64
But something is wrong with them for LLD case:
6422: ffffffff8140b000 8 OBJECT GLOBAL DEFAULT 19 jiffies
7416: ffffffff81400000 0 NOTYPE GLOBAL DEFAULT 19 jiffies_64
I think we probably incorrectly assign symbols outside SECTIONS declarations in scripts. Looking at it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev