Commit 276c974ac7965e7335f0f4ab945729d8f30f11b5

Authored by Amerigo Wang
Committed by Linus Torvalds
1 parent 6fa851c3e9

uml: fix a section warning

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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

arch/um/sys-i386/stub.S
1 1 #include "as-layout.h"
2 2  
3 3 .globl syscall_stub
4   -.section .__syscall_stub, "x"
  4 +.section .__syscall_stub, "ax"
5 5  
6 6 .globl batch_syscall_stub
7 7 batch_syscall_stub:
arch/um/sys-x86_64/stub.S
1 1 #include "as-layout.h"
2 2  
3 3 .globl syscall_stub
4   -.section .__syscall_stub, "x"
  4 +.section .__syscall_stub, "ax"
5 5 syscall_stub:
6 6 syscall
7 7 /* We don't have 64-bit constants, so this constructs the address