undefined reference to `__aeabi_uldivmod'

编译内核时还有个错误undefined reference to `__aeabi_uldivmod',上网查了说是GCC4.3对代码的优化导致的。打开Makefile修改 KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common \ -Werror-implicit-function-declaration 找到这里,增加一行 KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common \ -Werror-implicit-function-declaration \ -fno-tree-scev-cprop 编译通过。

转载于:https://www.cnblogs.com/zhu-g5may/p/11135028.html

你可能感兴趣的:(undefined reference to `__aeabi_uldivmod')