[PATCH 1/5] arm64: Fix __data_loc value
Geoff Levand
geoff at infradead.org
Thu Dec 12 15:39:45 EST 2013
The __data_loc variable should be set to the VMA of the data section, not
the LMA.
At present LOAD_OFFSET is not set and defaults to zero, so this bug
does not cause any problems.
Signed-off-by: Geoff Levand <geoff at infradead.org> for Huawei, Linaro
---
arch/arm64/kernel/vmlinux.lds.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
index 5161ad9..3072c41 100644
--- a/arch/arm64/kernel/vmlinux.lds.S
+++ b/arch/arm64/kernel/vmlinux.lds.S
@@ -99,7 +99,7 @@ SECTIONS
. = ALIGN(PAGE_SIZE);
_data = .;
- __data_loc = _data - LOAD_OFFSET;
+ __data_loc = _data;
_sdata = .;
RW_DATA_SECTION(64, PAGE_SIZE, THREAD_SIZE)
_edata = .;
--
1.8.1.2
More information about the linux-arm-kernel
mailing list