From 49937f4310c9cae42bc96395c4a6878c9a4ab1c5 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 6 Sep 2009 13:42:27 +0000 Subject: [uml] fix some section warnings git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17524 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../uml/patches/004-fix_section_warning.patch | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 target/linux/uml/patches/004-fix_section_warning.patch diff --git a/target/linux/uml/patches/004-fix_section_warning.patch b/target/linux/uml/patches/004-fix_section_warning.patch new file mode 100644 index 000000000..bd863005b --- /dev/null +++ b/target/linux/uml/patches/004-fix_section_warning.patch @@ -0,0 +1,47 @@ +When I compiled uml on x86_64, I got this warning: + + MODPOST vmlinux.o +WARNING: vmlinux.o (.__syscall_stub.2): unexpected non-allocatable section. +Did you forget to use "ax"/"aw" in a .S file? +Note that for example contains +section definitions for use in .S files. + +Because modpost checks for missing SHF_ALLOC section flag. So just +add it. :) + +Signed-off-by: WANG Cong +Cc: Jeff Dike +Cc: Sam Ravnborg + +--- +diff --git a/arch/um/sys-x86_64/stub.S b/arch/um/sys-x86_64/stub.S +index 6d9edf9..20e4a96 100644 +--- a/arch/um/sys-x86_64/stub.S ++++ b/arch/um/sys-x86_64/stub.S +@@ -1,7 +1,7 @@ + #include "as-layout.h" + + .globl syscall_stub +-.section .__syscall_stub, "x" ++.section .__syscall_stub, "ax" + syscall_stub: + syscall + /* We don't have 64-bit constants, so this constructs the address +diff --git a/arch/um/sys-i386/stub.S b/arch/um/sys-i386/stub.S +index c41b04b..54a36ec 100644 +--- a/arch/um/sys-i386/stub.S ++++ b/arch/um/sys-i386/stub.S +@@ -1,7 +1,7 @@ + #include "as-layout.h" + + .globl syscall_stub +-.section .__syscall_stub, "x" ++.section .__syscall_stub, "ax" + + .globl batch_syscall_stub + batch_syscall_stub: +-- +To unsubscribe from this list: send the line "unsubscribe linux-kernel" in +the body of a message to majordomo@vger.kernel.org +More majordomo info at http://vger.kernel.org/majordomo-info.html +Please read the FAQ at http://www.tux.org/lkml/ -- cgit v1.2.3