iptables: bump to version 1.6.1
[buildroot-gz.git] / board / qemu / or1k / patches / linux / 0002-kallsyms.patch
blobe788a7a9b45953f7825b107f1789b1b1906e3f38
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
17 @@ -38,6 +38,8 @@
18 /* Read-only sections, merged into text segment: */
19 . = LOAD_BASE ;
21 + _text = .;
23 /* _s_kernel_ro must be page aligned */
24 . = ALIGN(PAGE_SIZE);
25 _s_kernel_ro = .;