If the compiler kernel appears as follows:
WARNING:modpost:Found 1 section mismatch (es).
To the full details builds your kernel with:
' Make config_debug_section_mismatch=y '
GEN. Version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC INIT/VERSION.O
LD INIT/BUILT-IN.O
LD. tmp_vmlinux1
init/built-in.o:in function ' Do_one_initcall ':
/root/Desktop/linux-2.6.30.4/init/main.c:706:undefined Reference to ' __GNU_MCOUNT_NC '
init/built-in.o:in function ' Init_post ':
/root/Desktop/linux-2.6.30.4/init/main.c:804:undefined Reference to ' __GNU_MCOUNT_NC '
init/built-in.o:in function ' name_to_dev_t ':
/root/Desktop/linux-2.6.30.4/init/do_mounts.c:78:undefined Reference to ' __GNU_MCOUNT_NC '
init/built-in.o:in function ' Rest_init ':
/root/Desktop/linux-2.6.30.4/init/main.c:453:undefined Reference to ' __GNU_MCOUNT_NC '
init/built-in.o:in function ' Calibrate_delay ':
/root/Desktop/linux-2.6.30.4/init/calibrate.c:123:undefined Reference to ' __GNU_MCOUNT_NC '
arch/arm/kernel/built-in.o:/root/Desktop/linux-2.6.30.4/arch/arm/kernel/elf.c:8: More undefined references to ' __gnu_ Mcount_nc ' follow
Make: * * * [. tmp_vmlinux1] Error 1
root@czu:~/Desktop/linux-2.6.30.4#
Workaround:
Need Patch __gnu_mcount_nc_patch.patch.gz
After downloading the Linux root directory, and extract: __gnu_mcount_nc_patch.patch file.
Then, in the terminal into the Linux root directory, execute the following statement to package: Zcat __gnu_mcount_nc_patch.patch | Patch P1
(Note: "__" for two underscores are connected, "P1" after the Arabic numeral 1, but also pay attention to space)
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/