Skip to content

Commit

Permalink
uml: fix a section warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amerigo Wang authored and Linus Torvalds committed Jun 17, 2009
1 parent 6fa851c commit 276c974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/um/sys-i386/stub.S
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion arch/um/sys-x86_64/stub.S
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 276c974

Please sign in to comment.