chapter6/c/ 下make报如下错误

来源:互联网 发布:matlab 股票数据 编辑:程序博客网 时间:2024/06/10 08:19
lib/klib.o: In function `disp_int':
klib.c:(.text+0xe6): undefined reference to `__stack_chk_fail'

make: *** [kernel.bin] Error 1

解决办法:

CFLAGS          = -I include/ -c -fno-builtin  后添加-fno-stack-protector

CFLAGS          = -I include/ -c -fno-builtin  -fno-stack-protector



0 0
原创粉丝点击