* _text vs _start
@ 2007-01-03 21:07 Hollis Blanchard
2007-01-03 21:22 ` Hollis Blanchard
0 siblings, 1 reply; 5+ messages in thread
From: Hollis Blanchard @ 2007-01-03 21:07 UTC (permalink / raw)
To: Magnus Damm; +Cc: xen-devel
Hi Magnus, xen/common/kexec.c references _text, which is not provided by
PowerPC's linker script.
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?
Outside of Linux, kexec is the only code referencing _text.
--
Hollis Blanchard
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: _text vs _start
2007-01-03 21:07 _text vs _start Hollis Blanchard
@ 2007-01-03 21:22 ` Hollis Blanchard
2007-01-03 21:32 ` Keir Fraser
0 siblings, 1 reply; 5+ messages in thread
From: Hollis Blanchard @ 2007-01-03 21:22 UTC (permalink / raw)
To: Magnus Damm; +Cc: xen-devel
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.
--
Hollis Blanchard
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: _text vs _start
2007-01-03 21:22 ` Hollis Blanchard
@ 2007-01-03 21:32 ` Keir Fraser
2007-01-03 21:45 ` Hollis Blanchard
2007-01-05 3:09 ` Magnus Damm
0 siblings, 2 replies; 5+ messages in thread
From: Keir Fraser @ 2007-01-03 21:32 UTC (permalink / raw)
To: Hollis Blanchard, Magnus Damm; +Cc: xen-devel
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.
-- Keir
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: _text vs _start
2007-01-03 21:32 ` Keir Fraser
@ 2007-01-03 21:45 ` Hollis Blanchard
2007-01-05 3:09 ` Magnus Damm
1 sibling, 0 replies; 5+ messages in thread
From: Hollis Blanchard @ 2007-01-03 21:45 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel, Magnus Damm, xen-ppc-devel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: _text vs _start
2007-01-03 21:32 ` Keir Fraser
2007-01-03 21:45 ` Hollis Blanchard
@ 2007-01-05 3:09 ` Magnus Damm
1 sibling, 0 replies; 5+ messages in thread
From: Magnus Damm @ 2007-01-05 3:09 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel, Hollis Blanchard
On 1/4/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
> 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.
I was about to suggest to move the prototypes to a generic header file
while at it, but it seems like that someone already done that...
Thanks!
/ magnus
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-01-05 3:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-01-05 3:09 ` Magnus Damm
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.