This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Relocation truncated to fit: R_HYPO_8 text


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/




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