Root/target/linux/uml/patches-2.6.30/004-fix_section_warning.patch

1When I compiled uml on x86_64, I got this warning:
2
3  MODPOST vmlinux.o
4WARNING: vmlinux.o (.__syscall_stub.2): unexpected non-allocatable section.
5Did you forget to use "ax"/"aw" in a .S file?
6Note that for example <linux/init.h> contains
7section definitions for use in .S files.
8
9Because modpost checks for missing SHF_ALLOC section flag. So just
10add it. :)
11
12Signed-off-by: WANG Cong <amwang@redhat.com>
13Cc: Jeff Dike <jdike@addtoit.com>
14Cc: 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:
39

Archive Download this file



interactive