aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-09-06 13:42:27 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-09-06 13:42:27 +0000
commit37f1b4ed7d858565d7152f1d80bbd8b6d5ae0ec9 (patch)
tree87bd3e873f9defc668be6e80c984e27f06f1791a /target
parent40e46b98307c88dd5b20aa0ba2bd51935fceaa48 (diff)
downloadupstream-37f1b4ed7d858565d7152f1d80bbd8b6d5ae0ec9.tar.gz
upstream-37f1b4ed7d858565d7152f1d80bbd8b6d5ae0ec9.tar.bz2
upstream-37f1b4ed7d858565d7152f1d80bbd8b6d5ae0ec9.zip
fix some section warnings
SVN-Revision: 17524
Diffstat (limited to 'target')
-rw-r--r--target/linux/uml/patches/004-fix_section_warning.patch47
1 files changed, 47 insertions, 0 deletions
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 0000000000..bd863005b0
--- /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 <linux/init.h> 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 <amwang@redhat.com>
+Cc: Jeff Dike <jdike@addtoit.com>
+Cc: Sam Ravnborg <sam@ravnborg.org>
+
+---
+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/