Remember me

Lost Password?

Register now!


Who's Online
67 user(s) are online (49 user(s) are browsing Forums)

Members: 1
Guests: 66

RinceWynd, more...

Support us!


Report message:*

Re: Link problem (relocation truncated to fit)

Subject: Re: Link problem (relocation truncated to fit)
by phx on 2010/3/19 23:42:05


A PLTREL24 relocation is used to call a subroutine through a jump-slot in the .plt section. When linking with a shared object at run time the PLT (procedure linkage table) jump slots will be filled with vectors to the functions from the shared object.

PLTREL24 and the normal REL24 are mainly used for PPC "bl" instructions (used as a relative branch into a subroutine). The region which can be reached by such a branch is within a signed 26-bit value (the two least significant bits are always zero), which means +/- 32MB.

It seems that your program is so big that the distance to the .plt is not within 32 MB from your caller.

I don't know the linker script you are using, but for the PPC architecture the .plt is usually stored together with .bss sections, which means that the size of the data adds to the distance and the 32MB are easily exceeded...

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project