ARM的交叉编译:PIC不支持重定位类型R_ARM_ABS32

问题描述

我正在尝试为ARM平台交叉编译MQTT客户端。在创建二进制文件的最后一步,系统将在下面报告错误

我想我忽略了某事...

可能是什么原因?

预先感谢, 问候, R。

...
arm-2010q1/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_ABS32 is not supported for PIC
arm-2010q1/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_ABS32 is not supported for PIC
arm-2010q1/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_ABS32 is not supported for PIC
arm-2010q1/arm-uclinuxeabi/bin/elf2flt: error: 6402 bad relocs
collect2: ld returned 1 exit status
make[1]: *** [Makefile:26: static_pub] Error 1
make[1]: Leaving directory 'mosquitto-1.6.12/client'
make: *** [Makefile:59: mosquitto] Error 2

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)