Relocation truncated to fit: R_HYPO_8 text

Sebastian J. Mathew benny9@rediffmail.com
Wed Dec 13 22:52:00 GMT 2000


Hi,
   I have been trying to port binutils to Intel 8088 like
processor (hosted on pIII/Linux). Though I have been successful in porting the utilities to some extent,
I'm facing a problem, the discription of which is as
below:

For any instruction with 8bit displacement, when
I create a fixup, with relocation type not-PC-RELATIVE,
the linker gives the error message :

    relocation truncated to fit: R_HYPO_8 text

The problem is that, the displacement value is well
within the limits of 8 bit value, then why does this
problem arise.

The same fixup when created with PC-RELATIVE, works fine.

Also, for a fixup with relocation type not-PC-RELATIVE,
if I specify the noinhibit-exec option of the linker, it
dumps the right displacement value that I want.

Please suggest me what should I look for. Please help me.

regards
sebastian.

_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com

Participate in crazy auctions at http://auctions.rediff.com/auctions/





More information about the Binutils mailing list