Hi,
I'm using prctools under cygwin to do some embedded stuff on a palm IIIx. Everything was going well (debugging, calling functions, writing to registers & flash rom, etc.) until I needed a global variable...
My test program that shows the problem:
unsigned char __stack[0x1000]; char g_MyChar;
int main(void) { int id; char * pMyChar = g_MyChar; return 0; }
The linker complains with the following: relocation truncated to fit: END16 g_MyChar
It compiles & links ok using another m68k toolset. So, it tells me it has something to do with some PalmOs mods (it's a 16 bit OS). It can't be that my code area is too far away form my data area (it's only a 100 or so bytes). I'm guessing there's some "qualifier" or something I need to access the global variable--either in the linker script file or in my source. Hours of a google search turned up nothing.
I REALLY want to use prctools 'cause gdb works with the palm debugger. Mighty convenient. And my Win98 won't build a compiler under cygwin. :(
Anyone know what's going on here?
Thanks much!
Jim