編譯u-boot:_udivsi3.S:67: relocation truncated to fit: R_ARM_PLT32 __div0

來源:互聯網
上載者:User

用交叉編譯工具arm-linuc-gcc 3.4.1編譯U-boot1.2.0時出現了這樣的錯誤:

      lib_arm/_udivsi3.S:67: relocation truncated to fit: R_ARM_PLT32 __div0
      lib_arm/_umodsi3.S:79: relocation truncated to fit: R_ARM_PLT32 __div0

在網上找了一下發現有很多這樣的問題哦!

主要是“軟浮點(soft-float)”問題,解決方案有兩種:

1、因為3.4.1是支援硬浮點的,換用3.3.2或2.95.3版本的就OK了!

把3.3.2版本的交纏編譯工具鏈拷貝到/usr/local/arm下

tar解壓到目前的目錄

修改環境變數export PATH:=就可以嘍!這方法簡單。

2、自己建立一個soft-float交叉編譯工具,看起來很麻煩哦!

網上很多,在這裡不多說了,給一個連結:http://blog.csdn.net/dengxin123/article/details/2919807

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.