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]
Other format: [Raw text]

Re: What is the specification about BFD_RELOC_AVR_7_PCREL, BFD_RELOC_AVR_13_PCREL ?


Houda Benabderrazik <hbena76@yahoo.fr> writes:

> I want to know, how to determine the bit size of howto
> relocation?

Look at the ABI.

> For example, in Avr 
> why the BFD_RELOC_AVR_7_PCREL and 
> BFD_RELOC_AVR_13_PCREL are defined ? why 7, 13?

>From the names and the comments, I would guess that R_AVR_7_PCREL is a
7 bit PC relative relocation, and R_AVR_13_PCREL is a 13 bit PC
relative relocation.  I would guess that there are AVR instructions
which call for relocations of those sizes.

> What is the relatioship between PC and this
> relocation?

I don't understand this question.

> Which are the dicisive elements that help the
> programmer to put the size bit of relocation?

The ABI which defines the relocation.

> There is certainly a relationship with the mnemoniques
> and the opcodes defined for the microcontrolor?

Yes, there certainly is.

Ian


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