summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2016-12-14 21:27:57 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-06 18:59:46 -0700
commit88a86f8dfaad6b7185ad1658a8283f12dc4a351b (patch)
tree73e7dba7f02c6228c300d4522dec625fcf6d380d /arch
parent033d5ce4ad8d7b56bd562ff1107ac5780fb85eb7 (diff)
openrisc: Add _text symbol to fix ksym build error
[ Upstream commit 086cc1c31a0ec075dac02425367c871bb65bc2c9 ] The build robot reports: .tmp_kallsyms1.o: In function `kallsyms_relative_base': >> (.rodata+0x8a18): undefined reference to `_text' This is when using 'make alldefconfig'. Adding this _text symbol to mark the start of the kernel as in other architecture fixes this. Signed-off-by: Stafford Horne <shorne@gmail.com> Acked-by: Jonas Bonn <jonas@southpole.se> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/openrisc/kernel/vmlinux.lds.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/vmlinux.lds.S b/arch/openrisc/kernel/vmlinux.lds.S
index d68b9ede8423..c50609aead35 100644
--- a/arch/openrisc/kernel/vmlinux.lds.S
+++ b/arch/openrisc/kernel/vmlinux.lds.S
@@ -38,6 +38,8 @@ SECTIONS
/* Read-only sections, merged into text segment: */
. = LOAD_BASE ;
+ _text = .;
+
/* _s_kernel_ro must be page aligned */
. = ALIGN(PAGE_SIZE);
_s_kernel_ro = .;