If the kernel is compiled as follows:
Warning: modpost: found 1 Section mismatch (es ).
To see full details build your kernel:
'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/desktops/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 :~ /Desk/linux-2.6.30.4 #
Solution:
__Gnu_mcount_nc_patch.patch.gz
Download the package and put it in the Linux root directory. decompress the file __gnu_mcount_nc_patch.patch.
Then, enter the linux root directory on the terminal and run the following statement to package: zcat _ gnu_mcount_nc_patch.patch | patch p1
(Note: "_" is a combination of two underscores, "p1" is followed by an Arabic number 1, but also pay attention to spaces)