summaryrefslogtreecommitdiff
path: root/arch/arm/lib/relocate.S
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-11-07 15:47:09 (GMT)
committerAlexander Graf <agraf@suse.de>2016-11-14 22:24:03 (GMT)
commitc70f74a081c2005b0a4749cf8762fc14b7369ddb (patch)
tree6edbba17396a181e6ef05ca4c5e6696b88017949 /arch/arm/lib/relocate.S
parentc7ae3dfdccc171543804d6577ee41ab03e7a09bc (diff)
downloadu-boot-fsl-qoriq-c70f74a081c2005b0a4749cf8762fc14b7369ddb.tar.xz
elf: arm: Add a few ARM relocation types
Rather than hard-coding the relocation type, add it to the ELF header file and use it from there. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/arm/lib/relocate.S')
-rw-r--r--arch/arm/lib/relocate.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/lib/relocate.S b/arch/arm/lib/relocate.S
index 475d503..a6fb07c 100644
--- a/arch/arm/lib/relocate.S
+++ b/arch/arm/lib/relocate.S
@@ -8,6 +8,7 @@
#include <asm-offsets.h>
#include <config.h>
+#include <elf.h>
#include <linux/linkage.h>
#ifdef CONFIG_CPU_V7M
#include <asm/armv7m.h>
@@ -96,7 +97,7 @@ copy_loop:
fixloop:
ldmia r2!, {r0-r1} /* (r0,r1) <- (SRC location,fixup) */
and r1, r1, #0xff
- cmp r1, #23 /* relative fixup? */
+ cmp r1, #R_ARM_RELATIVE
bne fixnext
/* relative fix: increase location by offset */