uml: refresh patches
[openwrt/svn-archive/archive.git] / target / linux / uml / patches / 004-fix_section_warning.patch
1 When I compiled uml on x86_64, I got this warning:
2
3 MODPOST vmlinux.o
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.
8
9 Because modpost checks for missing SHF_ALLOC section flag. So just
10 add it. :)
11
12 Signed-off-by: WANG Cong <amwang@redhat.com>
13 Cc: Jeff Dike <jdike@addtoit.com>
14 Cc: Sam Ravnborg <sam@ravnborg.org>
15
16 ---
17 --- a/arch/um/sys-x86_64/stub.S
18 +++ b/arch/um/sys-x86_64/stub.S
19 @@ -1,7 +1,7 @@
20 #include "as-layout.h"
21
22 .globl syscall_stub
23 -.section .__syscall_stub, "x"
24 +.section .__syscall_stub, "ax"
25 syscall_stub:
26 syscall
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
30 @@ -1,7 +1,7 @@
31 #include "as-layout.h"
32
33 .globl syscall_stub
34 -.section .__syscall_stub, "x"
35 +.section .__syscall_stub, "ax"
36
37 .globl batch_syscall_stub
38 batch_syscall_stub: