编译报undefined reference to `__aeabi_uldivmod'错误

来源:互联网 发布:格力网络推广方案 编辑:程序博客网 时间:2024/06/05 09:16
编译内核时还有个错误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 
编译通过。
0 0