Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Ubuntu 13.10 中安装 pintos,但是在线程文件夹中执行“make”命令时,出现错误
“对 `__stack_chk_fail' 的更多未定义引用遵循 make[1]:* [kernel.o] 错误 1”
由于我是第一次遇到此错误,我无法弄清楚这一点。
Ubuntu 的 GCC 默认启用该-fstack-protector标志,以防御堆栈溢出攻击(有关其 wiki 的更多信息)。您必须添加-fno-stack-protector到编译器标志。
-fstack-protector
-fno-stack-protector