[llvmlinux] [arch/x86/kernel/head64.c] In function `early_make_pgtable': undefined reference to `mcount'
sedat.dilek at gmail.com
Tue Jul 9 21:43:25 UTC 2013
On Tue, Jul 9, 2013 at 11:22 PM, Jan-Simon Möller
<jsmoeller at linuxfoundation.org> wrote:
> Good, now compare the provided config with yours and find the option(s) which
> differ and provoke this.
That's not a good advice - as both differ a lot.
A list of Kconfig-options which are known to be problematic (BROKEN)
would be helpful.
I think I take llvmlinux's kernel-config with CONFIG_INTEL_MEI*
enabled and see if this boots.
> Then compare a gcc build with a clang build of that same file.
Did you look into the disassembled objdump?
Or any other advice how to see why mcount is not referenced?
- Sedat -
> Sincerely yours,
> Jan-Simon Möller
> jsmoeller at linuxfoundation.org
> On Tuesday 09 July 2013 23:15:20 Sedat Dilek wrote:
>> From my build-log:
>> LINK vmlinux
>> LD vmlinux.o
>> MODPOST vmlinux.o
>> GEN .version
>> CHK include/generated/compile.h
>> UPD include/generated/compile.h
>> CC init/version.o
>> LD init/built-in.o
>> arch/x86/kernel/head64.o: In function `early_make_pgtable':
>> arch/x86/kernel/head64.c:(.init.text+0x2a): undefined reference to `mcount'
>> arch/x86/kernel/head64.c:(.init.text+0x3e): undefined reference to `mcount'
>> arch/x86/kernel/head64.c:(.init.text+0x4d): undefined reference to `mcount'
>> arch/x86/kernel/head64.c:(.init.text+0xb1): undefined reference to `mcount'
>> arch/x86/kernel/head64.c:(.init.text+0xd4): undefined reference to `mcount'
>> more undefined references to `mcount' follow
>> make: *** [vmlinux] Error 1
>> make: *** [deb-pkg] Error 2
>> - Sedat -
More information about the LLVMLinux