Commit 88a86f8dfaad6b7185ad1658a8283f12dc4a351b

Authored by Stafford Horne
Committed by Greg Kroah-Hartman
1 parent 033d5ce4ad

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

arch/openrisc/kernel/vmlinux.lds.S
... ... @@ -38,6 +38,8 @@
38 38 /* Read-only sections, merged into text segment: */
39 39 . = LOAD_BASE ;
40 40  
  41 + _text = .;
  42 +
41 43 /* _s_kernel_ro must be page aligned */
42 44 . = ALIGN(PAGE_SIZE);
43 45 _s_kernel_ro = .;