Forcing gas not to resolve jump offsets
Alan Modra
amodra@bigpond.net.au
Mon Dec 16 19:53:00 GMT 2002
On Mon, Dec 16, 2002 at 06:52:56PM -0800, Nick Kelsey wrote:
> I am wondering how I can tell gas not to resolve jump/call target symbols
> that jump/call to a different section, even if they are in the same file?
You need to do adjust TC_FORCE_RELOCATION for ip2k. In your case this
means changing tc-ip2k.c:ip2k_force_relocation. The function should
return 1 for jump target fixups, which you likely can discriminate
from other fixups by looking at the relocation type. You may also
need to define tc_fix_adjustable to prevent gas converting a fixup
against your jump target symbols to a fixup against a section symbol.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list