Skip to content

Instantly share code, notes, and snippets.

@dileks
Created April 17, 2011 14:03
Show Gist options
  • Select an option

  • Save dileks/924049 to your computer and use it in GitHub Desktop.

Select an option

Save dileks/924049 to your computer and use it in GitHub Desktop.
WARNING: vmlinux.o(.text+0x1ba48): Section mismatch in reference from the function native_pagetable_reserve() to the function .init.text:memblock_x86_reserve_range()
[15:45:51] <dileks> arch/x86/mm/memblock.c:void __init memblock_x86_reserve_range(u64 start, u64 end, char *name)
[15:45:58] <dileks> pipacs: here? ^^
[15:48:06] <pipacs> yes
[15:56:12] <dileks> https://gist.github.com/924045
[15:56:14] <dileks> hmm
[15:56:23] <dileks> This is often because memblock_x86_reserve_range lacks a __init
[15:56:31] <dileks> but I can try 1st advice
[15:56:41] <dileks> This is often because memblock_x86_reserve_range lacks a __initdata
[15:56:50] <pipacs> oh yeah, this is going to be iterative
[15:56:51] <pipacs> well
[15:56:55] <pipacs> then try the other way
[15:57:07] <dileks> ...or the annotation of memblock_debug is wrong.
[15:57:15] <pipacs> add __init to native_pagetable_reserve
[15:59:26] <dileks> with only change to native_pagetable_reserve
[16:01:47] <dileks> damn, read boy read... it says *or*
[16:02:09] <dileks> only the latter makes the section mismatch go away
$ make
make -C /home/sd/src/linux-2.6/linux-2.6.39-rc3/debian/build/source_i386_none O=/home/sd/src/linux-2.6/linux-2.6.39-rc3/debian/build/build_i386_none_686-small/.
Using /home/sd/src/linux-2.6/linux-2.6.39-rc3/debian/build/source_i386_none as source for kernel
GEN /home/sd/src/linux-2.6/linux-2.6.39-rc3/debian/build/build_i386_none_686-small/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CALL /home/sd/src/linux-2.6/linux-2.6.39-rc3/debian/build/source_i386_none/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/x86/mm/memblock.o
LD arch/x86/mm/built-in.o
VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
VDSOSYM arch/x86/vdso/vdso32-syms.lds
LD arch/x86/vdso/built-in.o
LD arch/x86/built-in.o
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
LD .tmp_vmlinux1
mm/built-in.o: In function `calc_period_shift.part.10':
page-writeback.c:(.text+0x6458): undefined reference to `____ilog2_NaN'
make[2]: *** [.tmp_vmlinux1] Fehler 1
make[1]: *** [sub-make] Fehler 2
make: *** [all] Fehler 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment