summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib64/runtime-offset.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/lib64/runtime-offset.S')
-rw-r--r--arch/arm/lib64/runtime-offset.S7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/lib64/runtime-offset.S b/arch/arm/lib64/runtime-offset.S
index e2ff5d2103..b10c104b4d 100644
--- a/arch/arm/lib64/runtime-offset.S
+++ b/arch/arm/lib64/runtime-offset.S
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
#include <linux/linkage.h>
#include <asm/assembler.h>
@@ -9,10 +11,12 @@
*/
ENTRY(get_runtime_offset)
adr x0, _text
- ldr x1, linkadr
+ ldr_l x1, linkadr
subs x0, x0, x1
ret
+ENDPROC(get_runtime_offset)
+.section ".data.runtime_offset","a"
.align 3
linkadr:
/*
@@ -22,4 +26,3 @@ linkadr:
* use _text here since that is 0x0 and is correct without relocation.
*/
.quad _text
-ENDPROC(get_runtime_offset)