1 When I compiled uml on x86_64, I got this warning:
4 WARNING: vmlinux.o (.__syscall_stub.2): unexpected non-allocatable section.
5 Did you forget to use "ax"/"aw" in a .S file?
6 Note that for example <linux/init.h> contains
7 section definitions for use in .S files.
9 Because modpost checks for missing SHF_ALLOC section flag. So just
12 Signed-off-by: WANG Cong <amwang@redhat.com>
13 Cc: Jeff Dike <jdike@addtoit.com>
14 Cc: Sam Ravnborg <sam@ravnborg.org>
17 diff --git a/arch/um/sys-x86_64/stub.S b/arch/um/sys-x86_64/stub.S
18 index 6d9edf9..20e4a96 100644
19 --- a/arch/um/sys-x86_64/stub.S
20 +++ b/arch/um/sys-x86_64/stub.S
22 #include "as-layout.h"
25 -.section .__syscall_stub, "x"
26 +.section .__syscall_stub, "ax"
29 /* We don't have 64-bit constants, so this constructs the address
30 diff --git a/arch/um/sys-i386/stub.S b/arch/um/sys-i386/stub.S
31 index c41b04b..54a36ec 100644
32 --- a/arch/um/sys-i386/stub.S
33 +++ b/arch/um/sys-i386/stub.S
35 #include "as-layout.h"
38 -.section .__syscall_stub, "x"
39 +.section .__syscall_stub, "ax"
41 .globl batch_syscall_stub
44 To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
45 the body of a message to majordomo@vger.kernel.org
46 More majordomo info at http://vger.kernel.org/majordomo-info.html
47 Please read the FAQ at http://www.tux.org/lkml/