diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-02-10 08:48:33 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-02-10 08:48:33 +0000 |
commit | 1b043cb00c034f51af0a07fe6a91539938fa6d17 (patch) | |
tree | 0d125c708ddf9f169d462a5b14da36e7e98cc736 /target/linux/uml/patches-2.6.30/004-fix_section_warning.patch | |
parent | a02f62c75f5990e1ae196f9cd23d2c1ffd582af7 (diff) |
[uml] move 2.6.30 patches to their appropriate directory
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19572 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/uml/patches-2.6.30/004-fix_section_warning.patch')
-rw-r--r-- | target/linux/uml/patches-2.6.30/004-fix_section_warning.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/target/linux/uml/patches-2.6.30/004-fix_section_warning.patch b/target/linux/uml/patches-2.6.30/004-fix_section_warning.patch new file mode 100644 index 000000000..3e0d945ae --- /dev/null +++ b/target/linux/uml/patches-2.6.30/004-fix_section_warning.patch @@ -0,0 +1,38 @@ +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> + +--- +--- 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 +--- 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: |