Force usage of PLT (on powerpc)?
Geoffrey Keating
geoffk@geoffk.org
Thu Oct 28 16:33:00 GMT 2004
Probably the easiest way to do what you want is to have your shared
library loader create small 'branch islands' near the shared library
for each branch that goes too far. A too-far 'bl' instruction would
branch to a branch island, which would then use a 4-instruction
sequence to go to the right place.
Another possibility, if your whole application is less than the 16Mb
limit when loaded, is to just make sure that non-PIC shared libraries
are loaded close enough to the application for the branches to reach.
More information about the Gcc
mailing list