2

在编译我们的一个依赖工具时,链接时出现了一个长列表重定位错误:

SomeLibrary.a(SomeObject.o)(.text._bla_bla_bla): error: relocation overflow
collect2: error: ld returned 1 exit status
cook: command g++: exit status 1

依赖工具正在编译gcc-8.x,我们的工具正在编译gcc-4.x

这个问题特别出现在 IBMPowerPC平台上,RHEL编译良好。

建议我们-mcmodel=medium在编译代码时使用。

在网上找不到太多帮助。使用此选项的任何特定目的?

4

0 回答 0