home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18771 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.9 KB  |  52 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!agate!apple!mumbo.apple.com!gallant.apple.com!wintermute.apple.com!user
  3. From: ksand@apple.com (Kent Sandvik )
  4. Subject: Re: MPW Linker help needed
  5. Sender: news@gallant.apple.com
  6. Message-ID: <ksand-211192234558@wintermute.apple.com>
  7. Date: Sun, 22 Nov 1992 07:49:22 GMT
  8. References: <1992Nov17.090523.376@unimur.um.es>
  9. Organization: Apple
  10. Followup-To: comp.sys.mac.programmer
  11. Lines: 39
  12.  
  13. In article <1992Nov17.090523.376@unimur.um.es>, humberto@unimur.um.es
  14. (Humberto Martinez) wrote:
  15. > Hello:
  16. >     I'm trying to compile flex and bison, from GNU, in a Macintosh LC. I
  17. > can't generate an executable file from the objects ones. My linker gets out
  18. > of order, and says:
  19. >     Link: Error: Jump Table offset into code segment is greater
  20. > than 32K (Error 50) .......
  21.  
  22. Sometimes I wonder how many times I have answered this question.
  23. It's even now documented in many places (MPW documentation, Tech
  24. Notes). I guess one problem is that the Segmentation TN is 
  25. brand new, and that the MPW documentation is not out through 
  26. the door yet.
  27.  
  28. Anyway, you are seeing a typical case where some of your jump
  29. table entries are pointing beyond the magical 16-bit offset.
  30.  
  31. The known tricks are to:
  32. a) Move object files around so that things called from main
  33. are quite near the Runtime.o file
  34. b) Even better, use the Link -srtseg, as in:
  35.    -srtsg all|segName      # place items referenced through Jump Table low
  36. in code resource.
  37.  
  38. This will tell the Link too to place JT entries up to the top with 
  39. branches <32k.
  40. c) Use the -br branch island Link flag that will create branch
  41. islands for >32k branches
  42. d) Use model far support that fixes all problems (32k segments
  43. including the jump tables and branches).
  44.  
  45. Cheers,
  46. Kent
  47. -------------------
  48. Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
  49. DISCLAIMER: Private activities on the Net.
  50.