This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: relocation truncated to fit


   Date: Thu, 19 Aug 1999 15:26:04 -0700
   From: "Aaron J. Grier" <aaron@frye.com>

   I'm using binutils-2.9.4.0.7 under linux, and trying to link up a whole
   mess (151, to be exact,) of COFF object files, and getting hundreds of:

   zdsp.o(.text+0x28c):zdsp.S: relocation truncated to fit: DISP16 _vputs

This means that have a 16 bit relocation and you're trying to stuff in
a value that is larger than 16 bits.  DISP16 is a 16 bit PC relative
relocation.  Since you are on the m68k, I would guess that you are
using something like a 16 bit branch call instruction, but the symbol
_vputs is not within a signed 16 bit range of the instruction.

I would appreciate hearing any easily-implemented suggestions for how
to make this error message more clear.

Ian

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]