diff options
author | Stafford Horne <shorne@gmail.com> | 2016-12-14 07:27:57 -0500 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2017-01-01 20:35:11 -0500 |
commit | 086cc1c31a0ec075dac02425367c871bb65bc2c9 (patch) | |
tree | f761141967b7e6c7f556768c017c3b155f61fddf /arch/openrisc | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) |
openrisc: Add _text symbol to fix ksym build error
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>
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/kernel/vmlinux.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/vmlinux.lds.S b/arch/openrisc/kernel/vmlinux.lds.S index ef31fc24344e..552544616b9d 100644 --- a/arch/openrisc/kernel/vmlinux.lds.S +++ b/arch/openrisc/kernel/vmlinux.lds.S | |||
@@ -44,6 +44,8 @@ SECTIONS | |||
44 | /* Read-only sections, merged into text segment: */ | 44 | /* Read-only sections, merged into text segment: */ |
45 | . = LOAD_BASE ; | 45 | . = LOAD_BASE ; |
46 | 46 | ||
47 | _text = .; | ||
48 | |||
47 | /* _s_kernel_ro must be page aligned */ | 49 | /* _s_kernel_ro must be page aligned */ |
48 | . = ALIGN(PAGE_SIZE); | 50 | . = ALIGN(PAGE_SIZE); |
49 | _s_kernel_ro = .; | 51 | _s_kernel_ro = .; |