[comp.sys.mac.programmer] MPW Linker

edwardsc@dcs.glasgow.ac.uk (Chris Edwards) (05/14/91)

I am trying to compile a rather large program in MPW C, and I am getting

'Link: Error: Jump Table Offset is out of range'

several times, each refering to a library function (such as strcpy). 

Anyone know what could be wrong ?

Many Thanks

Chris Edwards

-- 
Mail:   Chris Edwards, Computing Science Dept.,
        Glasgow Univ., 17 Lilybank Gardens,
        Glasgow G12 8QQ, UK.
ARPA:   edwardsc%uk.ac.glasgow.dcs@nsfnet-relay.ac.uk 

rgm@ocf.berkeley.edu (Rob Menke) (05/14/91)

In article <1991May13.192704.9459@dcs.glasgow.ac.uk>
edwardsc@dcs.glasgow.ac.uk (Chris Edwards) gets the following error:

   'Link: Error: Jump Table Offset is out of range'

This is just a late-night-caffeine-induced guess, but I'd say the
library routines are being appended to the end of the main module
which is over the 32K default size limit.  Try compiling with linker
options '-srt' and '-ss 49152' and see if that clears up your problem.
--
"Gadget, love, do ya always carry a	|  Robert Menke
 glass cutter?"				|    rgm@OCF.berkeley.edu
"No-- only when I want to cut glass."	|    ...!ucbvax!OCF!rgm

) (05/16/91)

	Funny you should mention this, I've been getting the same thing
lately, closely followed with "Link: Error: PC-relative edit, offset out
of range."  In the MPW manual it mentions something about compiling with
the -m option, to increase the 'range', and then linking with the -srt and
-ss options.  I've tried this and it doesn't seem to help.  Let me know if you
find anything that does.  BTW, is the program you're compiling > 32K?

Charles