lib/klib.o: In function `disp_int':
klib.c:(.text+0xe6): undefined reference to `__stack_chk_fail'
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