I think I must have a base misunderstanding of how to do a multi-segment app
in (Linux) gcc.
I have an app with a prc size of 65402 characters and has two segments.
I'm trying to add a function call, and I'm getting the following error:
-mycroft-> make
m68k-palmos-gcc -static -g -O3 -I/usr/palm/m68k-palmos-coff/include/PalmOS
-I/usr/palm/m68k-palmos-coff/include
-I/usr/palm/m68k-palmos-coff/include/PalmOS/System
-I/usr/palm/m68k-palmos-coff/include/PalmOS/Hardware
-I/usr/palm/m68k-palmos-coff/include/PalmOS/UI -c app.c -o app.o
/tmp/ccicGGCR.s: Assembler messages:
/tmp/ccicGGCR.s:27940: Error: Value of -33508 too large for field of 2 bytes at 0x726c
/tmp/ccicGGCR.s:27940: Error: value out of range
make: *** [app.o] Error 1
-mycroft->
I've tried adding another segment, and while I can get it to compile with the third
segment, I still can't get the function call to work.
I've tried several other things as well. I've moved the offending function to a
different place in the .c -- which makes things worse. I've moved some functions
to different segments -- no change. I've made the largest segment smaller.
Again no change.
What do I need to do to fix this error, and what do I need to do to keep similar errors
from occuring in the future?
Thanks,
Sean.
---
Sean L. Gilley I have come to doubt all that I once held as true.
[EMAIL PROTECTED] I stand alone, without beliefs...
http://www.desert-penguin.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/