relocation truncated to fit: R_MIPS_26 against

来源:互联网 发布:外国人评论中国淘宝 编辑:程序博客网 时间:2024/05/17 02:24

http://hi.baidu.com/over_qyl/item/50c769f01d2cd41aff358231

开发的gcc版本:

root@ubuntu:~/SP1502_metal# gcc -v

Using built-in specs.

Target: i486-linux-gnu

Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu

Thread model: posix

gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)

在编译程序的过程中遇到一个问题:relocation truncated to fit: R_MIPS_26 against `InitilizeUniqFreq'

这个错误的意思是:跳转指令jump执行错误,找不到那个函数,一般都是是不是编译的原因,你先查看你有没有在程序编译的时候执行到哪儿,在看看你的函数中是否使用全局变量,全局变量的定义一定要在使用之前。再者就是编译器的版本问题了。

原创粉丝点击