opensubscriber
   Find in this group all groups
 
Unknown more information…

m : mac-dev-forum@news.palmos.com 31 January 2007 • 2:55AM -0500

Questions about porting from codewarrior
by reinfried

REPLY TO AUTHOR
 
REPLY TO GROUP




I am attempting to port my code from Codewarrior to XCode and PRCTools and am running into some problems.  Compilation worked, but at first, I got a "region coderes is full" error at link time.  I realized that PRCTools seems to have a limit of 32K per section as opposed to the 64K for Codewarrior, and I believe I have fixed this problem by adding -T /usr/local/m68k-palmos/lib/text_64k on the link line to allow the larger section, because that error message no longer appears.  However, I still get sevreal "relocation truncated to fit" errors.  For example:

/usr/local/m68k-palmos/lib/crt0.o(.text+0x46): In function `start':
crt0.c:62: relocation truncated to fit: DISP16 _GccRelocateData

Can someone explain to me what the problem is and what I need to do to fix it?  From the little research I've done, I'm guessing that I have function calls that have more than 32K between them and the called functrion, which seems to be disallowed, but in that case, I'm not sure why the problem didn't manifest itself in CodeWarrior.  Any ideas?  If I need to write a multi-section application, can someone explain that or point me at clear documentation on how I do that?  Thanks!

Martin
--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.