上传者: woodrow__tqc
|
上传时间: 2019-12-21 21:56:08
|
文件大小: 1KB
|
文件类型: gz
解决undefined reference to `__gnu_mcount_nc'问题
在linux内核编译时出现以下错误:
init/built-in.o: In function `do_one_initcall':
/linux-2.6.30.4/init/main.c:706: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `init_post':
/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':
/linux-2.6.30.4/init/do_mounts.c:78: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `rest_init':
/linux-2.6.30.4/init/main.c:453: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `calibrate_delay':
/linux-2.6.30.4/init/calibrate.c:123: undefined reference to `__gnu_mcount_nc'
下载资源补丁,把放到linux源码目录下
#cp __gnu_mcount_nc_patch.gz ../linux.2.6.30.4
解压打补丁
#gunzip -dc __gnu_mcount_nc_patch.patch.gz | patch -p1
OK!