R_AARCH64_CALL26 Relocation Error on Ubuntu 18.04
Richard Earnshaw
Richard.Earnshaw@foss.arm.com
Tue Mar 1 13:29:25 GMT 2022
On 01/03/2022 01:45, Ra T via Binutils wrote:
> Has anyone seen this problem on NVidia's L4T (based on Ubuntu 18.04) with a
> Jetson AGX Xavier?
>
> I'm trying to compile Qt 5.15.8, and the opensource Chromium build
> (QtWebEngine) is failing with the error:
>
> "relocation truncated to fit: R_AARCH64_CALL26 against symbol ... defined
> in .text section in /lib/aarch64-linux-gnu/libc.so.6"
>
> The symbols listed are gettimeofday@@GLIBC2.17 and ntohs@@GLIBC_2.17.
>
> It seems similar to this bug:
> https://bugzilla.redhat.com/show_bug.cgi?id=1243559
>
> But I could not find a more recent bug. L4T 32.6.1 is using binutils 2.30,
> g++ 7.5.
>
> Sorry for newb questions, if this is the wrong mailing list let me know.
>
> Regards,
> Rad
It's not a bug, the linker is telling you that the target of the call
instruction is too far away from the instruction. This can happen if
your program or library contains too much compiled code. It's most
common when code is built without optimization. You could also try
building with -Os to reduce the amount of code generated.
If all else fails, you might need to partition your code into multiple
shared libraries so that each is smaller and less than the limit imposed
by the instruction set.
R.
More information about the Binutils
mailing list