avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] ELF R_AVR_13_PCREL Relocation


From: Jeff Barlow
Subject: Re: [avr-gcc-list] ELF R_AVR_13_PCREL Relocation
Date: Wed, 18 Feb 2015 18:59:55 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 02/18/2015 06:11 PM, Dylan McKay wrote:

This relocation is solely for the relative `jmp` and `call` instructions
(if I'm not mistaken).

Both of these instructions have exactly 12 bits for their target
address. Why is the relocation 13 bits then?

The resulting LSB of of those relocations is always zero, of course. The 12 bits in the instructions are bits 1 - 12. With the assumed zero LSB that's 13 bits total.

--
Later,
Jeff



reply via email to

[Prev in Thread] Current Thread [Next in Thread]