mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: "Toralf Förster" <toralf.foerster@gmx.de>
Cc: linux-kernel@vger.kernel.org,
	WANG Cong <xiyou.wangcong@gmail.com>,
	Jeremy Fitzhardinge <jeremy@xensource.com>
Subject: Re: build #344 issue for v2.6.24-rc8-74-ga7da60f Section mismatch: reference to .init.text:lguest_entry
Date: Sun, 20 Jan 2008 18:21:51 +0100	[thread overview]
Message-ID: <20080120172151.GA22524@uranus.ravnborg.org> (raw)
In-Reply-To: <200801201619.01965.toralf.foerster@gmx.de>

On Sun, Jan 20, 2008 at 04:18:58PM +0100, Toralf Förster wrote:
> Hello,
> 
> although I applied the xen-patch:
> 
> ..............................................................................
> tfoerste@n22 ~/devel/linux-2.6 $ git diff
> diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
> index f84e772..5e24f67 100644
> --- a/arch/x86/xen/setup.c
> +++ b/arch/x86/xen/setup.c
> @@ -59,7 +59,7 @@ static void xen_idle(void)
>  /*
>   * Set the bit indicating "nosegneg" library variants should be used.
>   */
> -static void fiddle_vdso(void)
> +static void __init fiddle_vdso(void)
>  {
>         extern u32 VDSO_NOTE_MASK; /* See ../kernel/vsyscall-note.S.  */
>         extern char vsyscall_int80_start;
> diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S
> index f8d6937..288d587 100644
> --- a/arch/x86/xen/xen-head.S
> +++ b/arch/x86/xen/xen-head.S
> @@ -4,16 +4,18 @@
>  #ifdef CONFIG_XEN
> 
>  #include <linux/elfnote.h>
> +#include <linux/init.h>
>  #include <asm/boot.h>
>  #include <xen/interface/elfnote.h>
> 
> -.pushsection .init.text
> +       __INIT
>  ENTRY(startup_xen)
>         movl %esi,xen_start_info
>         cld
>         movl $(init_thread_union+THREAD_SIZE),%esp
>         jmp xen_start_kernel
> -.popsection
> +
> +       __FINIT
> 
>  .pushsection .bss.page_aligned
>         .align PAGE_SIZE_asm
> ..............................................................................
> 
> 
> I got during make :
> 
>   AS      .tmp_kallsyms3.o
>   LD      vmlinux.o
>   MODPOST vmlinux.o
> WARNING: vmlinux.o(.data+0x4): Section mismatch: reference to .init.text:lguest_entry (between 'subarch_entries' and 'stack_start')
>   LD      vmlinux
>   SYSMAP  System.map
>   SYSMAP  .tmp_System.map
> 
> The build was made with :
> $> make mrproper && make rndconfig && <tweak config file> && make oldconfig && make

Different issue. Untested patch below.

	Sam
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S
index fbad51f..f0cacff 100644
--- a/arch/x86/kernel/head_32.S
+++ b/arch/x86/kernel/head_32.S
@@ -9,6 +9,7 @@
 
 .text
 #include <linux/threads.h>
+#include <linux/init.h>
 #include <linux/linkage.h>
 #include <asm/segment.h>
 #include <asm/page.h>
@@ -151,7 +152,9 @@ WEAK(xen_entry)
 	/* Unknown implementation; there's really
 	   nothing we can do at this point. */
 	ud2a
-.data
+
+	__INITDATA
+
 subarch_entries:
 	.long default_entry		/* normal x86/PC */
 	.long lguest_entry		/* lguest hypervisor */

  reply	other threads:[~2008-01-20 17:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-20 15:18 Toralf Förster
2008-01-20 17:21 ` Sam Ravnborg [this message]
2008-01-20 17:51   ` Toralf Förster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080120172151.GA22524@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=jeremy@xensource.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=toralf.foerster@gmx.de \
    --cc=xiyou.wangcong@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome