How to debug "relocation truncated" error.

Doug Broadwell dougb@value.net
Fri Aug 17 13:01:00 GMT 2001


Hi,

I'm cross compiling code using the m68k-pic-coff-gcc compiler, version
2.7.2.3-pic-060999, on an Intel Linux machine . The command line:

     m68k-pic-coff-gcc main.c monitor.o graph.o

results in the error:

     monitor.o(.text+0xdf8):monitor.c: relocation truncated to fit: DISP16
data

I don't know how to go about debugging this error as the assembly output
does not give address information (nor the C code interleaved with the
assembly code). It does not generate the executable so I can't debug using
GDB (assuming I got it set up to work on the remote machine).

Help!

Thanks, Doug Broadwell




More information about the Gcc-bugs mailing list