home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / oop / macapp3 / 588 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  3.5 KB

  1. Path: sparky!uunet!olivea!apple!applelink.apple.com
  2. From: RON_REUTER@MSMGATE.MRG.USWEST.COM
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: RE: Segment woes
  5. Message-ID: <9301222112.AA03942@uswmrg.mrg.uswest.com>
  6. Date: 21 Jan 93 18:04:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 78
  10.  
  11. Boy, do we need a FAQ or what? This question pops up every 2 months or so.
  12. Here're some answers from a previous link that may help:
  13.  
  14.  
  15. Item    6391060                         4-Sept-92        18:30PDT
  16. From:   KSAND                           Sandvik, Kent
  17. ------------------------------------------------------------------------------
  18.  
  19. Sub:    RELinker Errors, HELP!!!
  20.  
  21. ----Linking:       HTool
  22. ### LPS 105:Latest MPW:MPW:Tools:Link: Error: Jump table offset into code
  23. segment is greater than 32K. (Error 50) TFILESCOMMAND_INITIALIZEFROMAPPLEEVENT
  24. ### LPS 105:Latest MPW:MPW:Tools:Link: Error: Jump table offset into code
  25. segment is greater than 32K. (Error 50) TFILESCOMMAND_INITIALIZE
  26. ### LPS 105:Latest MPW:MPW:Tools:Link: Error: Jump table offset into code
  27. segment is greater than 32K. (Error 50) TODOCCOMMAND_IODOCCOMMAND
  28.  
  29. I've tried resegmentation without any improvement. These objects would seem to
  30. be in the MacApp code itself and not my code.
  31. -----
  32. Ouch, I've given sort of consulting answers to this question so many times. It
  33. will be part of a new TN that we are hopefully shipping in a month's time
  34. (Illuminations on MacApp Segmentation, imagine a bunch of monks working on a
  35. very expensive book :-) ).
  36.  
  37. Anyway, the error messages says it all. Trick to go around the 16-bit offset
  38. problem:
  39. a) Try using the link -sortsg flag that will move the most called functions
  40. within 16-bit offsets inside the segment. May work, may not.
  41. b) Use model far, no more pc-relative problems (32-bit offsets).
  42. c) Move Runtime.o as near the Main .o file as possible (hack in either the
  43. Makeit produced file, or move things around in the "Build Rules and
  44. Dependencies" so Runtime.o is nearer the self produced .o files.
  45. d) Segment things so that calls are done inside the same segment (no jump
  46. tables needed).
  47.  
  48. There might be other clever clues.
  49.  
  50.  
  51. ________________________________________________________
  52. From: PETER_BOSANKO@qmrelay.mail.cornell.edu on Thu, Jan 21, 1993 2:27 PM
  53. Subject: Segment woes
  54. To: MacApp 3 Technical Discussion
  55.  
  56. This message was sent using a custom form that is not installed on your server.
  57. Some information from the original message may not be displayed. To view the
  58. complete message, ask your network manager to install the form on your server.
  59.  
  60. AppleLink gatewayed addresses are limited to 35 characters, and this letter
  61. has a longer return address. It has been mapped into the address above.
  62. Reply using that address, and everything should work. The actual address
  63. is in the Internet headers below.
  64.  
  65. From: "Peter Bosanko" <Peter_Bosanko@qmrelay.mail.cornell.edu>
  66. To: "MacApp3 Tech$" <MacApp3Tech$@applelink.apple.com>
  67.  
  68. GatorMail-Q                   Segment woes
  69. Hello,
  70. I'm experiencing a strange error...
  71.  
  72.    ### Goliath:MPW:Tools:Link: Error: Jump table offset
  73.    into code segment is
  74.    greater than 32K. (Error 50) .READFROM
  75.  
  76. ... when my MacApp 3.0.1 program is being linked.  It happened after I added a
  77. couple of new classes to my App.  I thought at first that it might be because
  78. one of my segments had gotten too big.  So I made sure all the new code was in
  79. a segment on its own.  It still gets this error.
  80.  
  81. Has anyone seen this before?  Does this mean that I don't have space in my Jump
  82. Table?  Any insights would be appreciated.
  83.  
  84. Pete Bosanko
  85. Cornell Information Technologies
  86.  
  87.  
  88.  
  89.