[project @ 2003-10-08 09:42:34 by wolfgang]
authorwolfgang <unknown>
Wed, 8 Oct 2003 09:42:35 +0000 (09:42 +0000)
committerwolfgang <unknown>
Wed, 8 Oct 2003 09:42:35 +0000 (09:42 +0000)
commit2203c0cef25db52714de9bb33a5f3cde2d18b0f3
treed7d9b15f532892f8b56cce6cec370a9eb9fb55d1
parent45ee5a699675235094a4f471b33f1f54670ec85a
[project @ 2003-10-08 09:42:34 by wolfgang]
Mac OS X/PowerPC:
Learn to cope with out-of-range relative jumps.

PowerPC relative branch instructions have a 24 bit displacement field.
As PPC code is always 4-byte-aligned, this yields a +-32MB range.
If a particular imported symbol is outside this range, we have to redirect
the jump to a short piece of new code that just loads the 32bit absolute
address and jumps there.
ghc/rts/Linker.c
ghc/rts/LinkerInternals.h