Hi Greg,

In my experience, "relocation truncated to fit:" usually means that one of the segments has gotten too large. Try creating another segment - move some functions into that and see if that doesn't help you. There's a map file (somewhere) that can be created that'll even let you see the size of the segments.

G'Luck!

Lance



I have created a multi-segment app (Managed Make 68K) and added and referenced code 1 and code 2 in my app. My app now appears to compile fine but I get the error below at the end of the compile. It appears like the error is from the Palm OS libraries. PODS does not visually flag any code in my app as being a problem after the compile.

Does anyone know what the error below is from and how I can modify my compile or app to fix it. Here is the error message:


/usr/m68k-palmos/bin/ld: region coderes is full (PDATGadgets section .text)
/usr/m68k-palmos/lib/crt0.o(.text+0x50): In function `start':
crt0.c:64: relocation truncated to fit: DISP16 __do_bhook
/usr/m68k-palmos/lib/crt0.o(.text+0x5a):crt0.c:67: relocation truncated to fit: DISP16 __do_ctors /usr/m68k-palmos/lib/crt0.o(.text+0x70):crt0.c:72: relocation truncated to fit: DISP16 __do_dtors /usr/m68k-palmos/lib/crt0.o(.text+0x7a):crt0.c:74: relocation truncated to fit: DISP16 __do_ehook /usr/m68k-palmos/lib/libcrt.a(hooks.o)(.text+0x16): In function `__do_bhook':
hooks.c:28: relocation truncated to fit: DISP16 start
/usr/m68k-palmos/lib/libcrt.a(hooks.o)(.text+0x64): In function `__do_ehook':
hooks.c:44: relocation truncated to fit: DISP16 start
/usr/m68k-palmos/lib/libcrt.a(hooks.o)(.text+0xa6): In function `__do_ctors':
hooks.c:60: relocation truncated to fit: DISP16 start
/usr/m68k-palmos/lib/libcrt.a(hooks.o)(.text+0xe0): In function `__do_dtors':
hooks.c:76: relocation truncated to fit: DISP16 start
/usr/m68k-palmos/lib/libcrt.a(multi_dreloc.o)(.text+0xe): In function `_GccLoadCodeAndRelocateData':
dreloc.c:56: relocation truncated to fit: DISP16 start
collect2: ld returned 1 exit status


Thanks

Greg

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


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

Reply via email to