Paul Gortmaker ae51e60984 [ARM] 5507/1: support R_ARM_MOVW_ABS_NC and MOVT_ABS relocation types
From: Bruce Ashfield <bruce.ashfield@windriver.com>

To fully support the armv7-a instruction set/optimizations, support
for the R_ARM_MOVW_ABS_NC and R_ARM_MOVT_ABS relocation types is
required.

The MOVW and MOVT are both load-immediate instructions, MOVW loads 16
bits into the bottom half of a register, and MOVT loads 16 bits into the
top half of a register.

The relocation information for these instructions has a full 32 bit
value, plus an addend which is stored in the 16 immediate bits in the
instruction itself.  The immediate bits in the instruction are not
contiguous (the register # splits it into a 4 bit and 12 bit value),
so the addend has to be extracted accordingly and added to the value.
The value is then split and put into the instruction; a MOVW uses the
bottom 16 bits of the value, and a MOVT uses the top 16 bits.

Signed-off-by: David Borman <david.borman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-05-07 17:21:01 +01:00
..
2009-02-01 11:01:22 +05:30
2009-01-06 15:59:10 -08:00
2008-12-04 09:21:55 +00:00
2009-01-02 12:34:55 +00:00
2009-03-15 21:01:20 -04:00
2009-03-25 13:10:01 +02:00
2008-09-13 21:35:55 +01:00
2008-10-09 21:31:56 +01:00
2009-02-01 11:01:22 +05:30
2009-04-08 20:35:57 +01:00
2008-09-04 09:46:11 +01:00
2008-11-27 12:37:59 +00:00
2009-02-01 11:01:23 +05:30
2009-03-25 13:10:01 +02:00
2008-09-06 12:10:45 +01:00