1 From: https://lkml.org/lkml/2016/12/31/13
3 The build robot reports:
5 .tmp_kallsyms1.o: In function `kallsyms_relative_base':
6 >> (.rodata+0x8a18): undefined reference to `_text'
8 This is when using 'make alldefconfig'. Adding this _text symbol to mark
9 the start of the kernel as in other architecture fixes this.
11 Signed-off-by: Stafford Horne <shorne@gmail.com>
12 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
14 diff -Nur linux-4.9.orig/arch/openrisc/kernel/vmlinux.lds.S linux-4.9/arch/openrisc/kernel/vmlinux.lds.S
15 --- linux-4.9.orig/arch/openrisc/kernel/vmlinux.lds.S 2016-12-11 20:17:54.000000000 +0100
16 +++ linux-4.9/arch/openrisc/kernel/vmlinux.lds.S 2017-01-01 12:13:43.039107518 +0100
18 /* Read-only sections, merged into text segment: */
23 /* _s_kernel_ro must be page aligned */