Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ld error: relocation truncated to fit: END16 _MySymbol

1 view
Skip to first unread message

Jim

unread,
Dec 10, 2005, 7:48:08 PM12/10/05
to
Hi,

I'm using prctools under cygwin to do some embedded stuff on a palm
IIIx. I'm trying to reference a symbol in my linker script:

extern char _MySymbol;
...
char * pChar = &_MySymbol;

I get the following error message:

ld error: relocation truncated to fit: END16 _MySymbol.


Geesh, I just tried THIS & got the same error:

int g_MyTest;
int main(void)
{
int x = g_MyTest;
return 0;
}
ld: relocation truncated to fit: END16 g_MyTest


If I compile/link the above on my linux box using an m68k compiler, it
links fine. So, it has something to do with the palmos version. I'm
sure the "END16" is trying to tell me something, but what? At first I
thought it had something to do with some "all references have to be
within 16/32/64K", but the global var is only 7K from the code.

Any ideas?


Thanks!

Jim

0 new messages