All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <Jeremy.Fitzhardinge@citrix.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: "Jeremy Fitzhardinge" <jeremy@xensource.com>,
	"Chris Wright" <chrisw@sous-sol.org>,
	"Toralf Förster" <toralf.foerster@gmx.de>,
	linux-kernel@vger.kernel.org, rusty@rustcorp.com.au,
	"WANG Cong" <xiyou.wangcong@gmail.com>
Subject: Re: [updated PATCH] xen: fix section usage in xen-head.S and setup.c
Date: Sat, 19 Jan 2008 14:23:51 -0800	[thread overview]
Message-ID: <47927877.5090209@citrix.com> (raw)
In-Reply-To: <20080119212019.GB29070@uranus.ravnborg.org>

Sam Ravnborg wrote:
> Failing to specify "ax" in the pushsection caused ld to generate
> an additional section for .init.text appending a number.
>   

Thanks for tracking this down.  I think the "ax" appeared and 
disappeared over time, but this looks like the proper solution.

Are you going to submit this, or do you want me to pick it up?

> A side effect of this was a section mismatch warning because modpost
> did not recognize a .init.text section named .init.text.1:
> WARNING: vmlinux.o(.text.head+0x247): Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87')
>
> Fix this by hardcoding the "ax" in the pushsection.
> Thanks to Torlaf for reporting this.
>
> Alan Modra provided the hint that made me able to
> locate the root cause of this warning.
> And Mike Frysinger told me how to properly fix it
> using __INIT/__FINIT.
>
> Fix following Section mismatch warning in addition:
> WARNING: vmlinux.o(.text+0x14c8): Section mismatch: reference to .init.data:vsyscall_int80_start (between 'fiddle_vdso' and 'xen_setup_features')
>
> fiddle_vdso was only used from a __init function - so declare it __init.
>
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
>   

Acked-by: Jeremy Fitzhardinge <jeremy@xensource.com>

Thanks,
    J

  reply	other threads:[~2008-01-19 22:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-18 12:18 build #343 issue for v2.6.24-rc8-29-g03bbe08 : Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87') Toralf Förster
2008-01-18 12:29 ` WANG Cong
2008-01-18 12:46   ` Sam Ravnborg
2008-01-18 12:51     ` WANG Cong
2008-01-18 13:22       ` Sam Ravnborg
2008-01-18 16:14         ` WANG Cong
2008-01-18 18:47           ` Sam Ravnborg
2008-01-19 11:20             ` WANG Cong
2008-01-18 19:03           ` [PATCH for -rc] kbuild: fix false section mismatch warning referring to .init.text.2 Sam Ravnborg
2008-01-19 13:17           ` [PATCH] xen: fix section usage in xen-head.S Sam Ravnborg
2008-01-19 21:20             ` [updated PATCH] xen: fix section usage in xen-head.S and setup.c Sam Ravnborg
2008-01-19 22:23               ` Jeremy Fitzhardinge [this message]
2008-01-19 22:43                 ` Sam Ravnborg

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=47927877.5090209@citrix.com \
    --to=jeremy.fitzhardinge@citrix.com \
    --cc=chrisw@sous-sol.org \
    --cc=jeremy@xensource.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=sam@ravnborg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.