All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hollis Blanchard <hollisb@us.ibm.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel <xen-devel@lists.xensource.com>,
	Magnus Damm <magnus.damm@gmail.com>,
	xen-ppc-devel <xen-ppc-devel@lists.xensource.com>
Subject: Re: _text vs _start
Date: Wed, 03 Jan 2007 15:45:39 -0600	[thread overview]
Message-ID: <1167860740.6100.57.camel@basalt> (raw)
In-Reply-To: <C1C1D15A.6AC0%Keir.Fraser@cl.cam.ac.uk>

On Wed, 2007-01-03 at 21:32 +0000, Keir Fraser wrote:
> On 3/1/07 9:22 pm, "Hollis Blanchard" <hollisb@us.ibm.com> wrote:
> 
> > On Wed, 2007-01-03 at 15:07 -0600, Hollis Blanchard wrote:
> >> Given that you do arithmetic with _end, can you explain why you're not
> >> using _start, which is a standard symbol provided by the default linker
> >> script?
> >
> > My mistake; _start of course isn't a linker script symbol at all, but
> > rather the entry point code.
> 
> There is an unnecessary disagreement among architectures over what symbols
> should be used to mark section and image boundaries. We could reasonably
> agree on at least _start/_end and _stext/_etext I think. This would allow
> functions like is_kernel_text() to become generic, and make it obvious which
> labels kexec should be using.

Sounds great to me.

PowerPC already arranges for _start to be at the very beginning
of .text, which is at the beginning of the first PT_LOAD segment... so
the end result is that the address of _start is the same as our link
address.

We also provide _etext, and _end, but not _stext (currently).

-- 
Hollis Blanchard
IBM Linux Technology Center

  reply	other threads:[~2007-01-03 21:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-03 21:07 _text vs _start Hollis Blanchard
2007-01-03 21:22 ` Hollis Blanchard
2007-01-03 21:32   ` Keir Fraser
2007-01-03 21:45     ` Hollis Blanchard [this message]
2007-01-05  3:09     ` Magnus Damm

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=1167860740.6100.57.camel@basalt \
    --to=hollisb@us.ibm.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=magnus.damm@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-ppc-devel@lists.xensource.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.