1. include/linux/time.h:174: undefined reference to `__aeabi_uldivmod'
此问题是由于arm-2008q3的Gcc 4.3版,进行了代码优化导致。
--- include/linux/time.h 2008-10-09 19:47:23.000000000 +0200 +++ include/linux/time.h.new 2008-10-09 19:47:54.000000000 +0200 @@ -173,6 +173,10 @@ { ns += a->tv_nsec; while(unlikely(ns >= NSEC_PER_SEC)) { + /* The following asm() prevents the compiler from + * optimising this loop into a modulo operation. */ + asm("" : "+r"(ns)); + ns -= NSEC_PER_SEC; a->tv_sec++; }
|
2.
阅读(2936) | 评论(0) | 转发(0) |