ARM学习笔记010之Gcc编译新问题

11.27

之前的除法除不出来还没有解决,现在又有以下问题(在不添加raise函数的情况下):


网上说的原因是:

I'm getting the "relocation truncated to fit: R_ARM_PC24 against symbol" error message when linking, what does this mean?

You will get this error message when you are calling an external function that is too far for the ARM's branch and link instruction to reach. The maximum branch is +/- 32Mbytes in ARM mode and +/- 4Mbytes in Thumb mode.

You will typically get this when you have code placed into two memory segments that are located further apart than the maximum branch and link distance.

If the call is being made from C/C++ code then the solution is to either declare the function with the __long_call__attribute, for example:

详见: https://rowley.zendesk.com/entries/46203--relocation-truncated-to-fit-R-ARM-PC24-against-symbol-error-message

没有说解决之道

在两个重装的redhat5.1中都出现这样的问题,再在新装的redhat9.0上的gcc3.4.1上试试。redhat9.0上安装的是gcc而不是arm-linux-gcc,所以不行,出现了不应该有的错误。

启用任何图9.0.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

汉尼拔勇闯天涯

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值