uml: fix a section warning
authorAmerigo Wang <amwang@redhat.com>
Tue, 16 Jun 2009 22:33:30 +0000 (15:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:47 +0000 (19:47 -0700)
When compiling uml on x86_64:

  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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/sys-i386/stub.S
arch/um/sys-x86_64/stub.S

index c41b04bf5fa005399183176935a683dbfe92d3ce..54a36ec20cb75c32b65a7e0e28043a8c19c6a6f0 100644 (file)
@@ -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:
index 6d9edf9fabce15d4dac536ae8ce18e70b301822e..20e4a96a6dcbe064ddc99f719e7ffdb506fa4cdc 100644 (file)
@@ -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