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 --- a/arch/um/sys-x86_64/stub.S
18 +++ b/arch/um/sys-x86_64/stub.S
20 #include "as-layout.h"
23 -.section .__syscall_stub, "x"
24 +.section .__syscall_stub, "ax"
27 /* We don't have 64-bit constants, so this constructs the address
28 --- a/arch/um/sys-i386/stub.S
29 +++ b/arch/um/sys-i386/stub.S
31 #include "as-layout.h"
34 -.section .__syscall_stub, "x"
35 +.section .__syscall_stub, "ax"
37 .globl batch_syscall_stub