瀏覽代碼

x86_64: Fix xen section warnings

Fix

WARNING: vmlinux.o(.data+0x99): Section mismatch: reference to .init.text:xen_start_kernel (between 'startup_xen' and 'boot_gdt_descr')

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Andi Kleen 18 年之前
父節點
當前提交
0f760f1301
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/i386/xen/xen-head.S

+ 2 - 0
arch/i386/xen/xen-head.S

@@ -7,6 +7,7 @@
 #include <asm/boot.h>
 #include <asm/boot.h>
 #include <xen/interface/elfnote.h>
 #include <xen/interface/elfnote.h>
 
 
+	.section .init.text
 ENTRY(startup_xen)
 ENTRY(startup_xen)
 	movl %esi,xen_start_info
 	movl %esi,xen_start_info
 	cld
 	cld
@@ -19,6 +20,7 @@ ENTRY(hypercall_page)
 	.skip 0x1000
 	.skip 0x1000
 .popsection
 .popsection
 
 
+	.section .text
 	ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS,       .asciz "linux")
 	ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS,       .asciz "linux")
 	ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION,  .asciz "2.6")
 	ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION,  .asciz "2.6")
 	ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION,    .asciz "xen-3.0")
 	ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION,    .asciz "xen-3.0")