Skip to content

Commit

Permalink
x86_64: Fix xen section warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jul 22, 2007
1 parent 5f3f7cc commit 0f760f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/i386/xen/xen-head.S
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <asm/boot.h>
#include <xen/interface/elfnote.h>

.section .init.text
ENTRY(startup_xen)
movl %esi,xen_start_info
cld
Expand All @@ -19,6 +20,7 @@ ENTRY(hypercall_page)
.skip 0x1000
.popsection

.section .text
ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz "linux")
ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION, .asciz "2.6")
ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION, .asciz "xen-3.0")
Expand Down

0 comments on commit 0f760f1

Please sign in to comment.