summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-09-06 22:28:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-09 18:25:20 +0200
commitcc27564e4c05184227e6440f00382bfd673ab528 (patch)
treecce920f7029222854eb967f4d63dbb5759315814 /arch/arm/lib/Makefile
parentf680f893b43e45180ef1dc58c585fb0d8c0be398 (diff)
downloadbarebox-cc27564e4c05184227e6440f00382bfd673ab528.tar.gz
barebox-cc27564e4c05184227e6440f00382bfd673ab528.tar.xz
ARM: Add assembler function to get runtime offset
This function returns the offset between the address barebox is linked at and the address barebox is currently running at. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib/Makefile')
-rw-r--r--arch/arm/lib/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
index 9d0ff7a856..2e624cdf84 100644
--- a/arch/arm/lib/Makefile
+++ b/arch/arm/lib/Makefile
@@ -16,6 +16,8 @@ obj-y += lib1funcs.o
obj-y += ashrdi3.o
obj-y += ashldi3.o
obj-y += lshrdi3.o
+obj-y += runtime-offset.o
+pbl-y += runtime-offset.o
obj-$(CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS) += memcpy.o
obj-$(CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS) += memset.o
obj-$(CONFIG_ARM_UNWIND) += unwind.o