From: shc_work@mail.ru (Alexander Shiyan)
To: linux-arm-kernel@lists.infradead.org
Subject: Re: Start symbol for an compressed kernel
Date: Sat, 17 Aug 2013 18:12:04 +0400 [thread overview]
Message-ID: <1376748724.761782391@f272.i.mail.ru> (raw)
In-Reply-To: 20130817135751.GL23006@n2100.arm.linux.org.uk
> 2013/8/17 Russell King - ARM Linux <linux@arm.linux.org.uk>:
> > On Sat, Aug 17, 2013 at 09:56:14PM +0800, zhaobin xv wrote:
> >> 2013/8/17 Russell King - ARM Linux <linux@arm.linux.org.uk>:
> >> > On Sat, Aug 17, 2013 at 07:39:46PM +0800, zhaobin xv wrote:
> >> >> how to find Start symbol for an compressed kernel for arm
> >> >
> >> > The start address of a compressed kernel is the first byte of the image.
> >> >
> >> > Symbolically, that is 'start', which is a non-global symbol. However,
> >> > this symbol is useless since it normally is zero, because the entire
> >> > image is relocatable and therefore built for address zero.
> >> >
> >> > However, it is normal to load the image not at address zero.
> >>
> >> why do U define ENTRY(_start)?
> >> Is _start the Start symbol?
> >> how to explain _start
> >
> > There is no _start symbol in the compressed kernel.
>
> But there is ENTRY(_start) and _start in
> linux-2.6.22.6\arch\arm\boot\compressed/head.S
I always thought that the "start" is necessary for the compiler to tell it
what is at the beginning of the program. So, on my opinion this is just
a way to tell to gcc where we should place initial kernel data.
---
next prev parent reply other threads:[~2013-08-17 14:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-17 11:39 Start symbol for an compressed kernel zhaobin xv
2013-08-17 13:48 ` Russell King - ARM Linux
2013-08-17 13:56 ` zhaobin xv
2013-08-17 13:57 ` Russell King - ARM Linux
2013-08-17 14:03 ` zhaobin xv
2013-08-17 14:16 ` Russell King - ARM Linux
2013-08-17 14:12 ` Alexander Shiyan [this message]
2013-08-17 14:19 ` Russell King - ARM Linux
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=1376748724.761782391@f272.i.mail.ru \
--to=shc_work@mail.ru \
--cc=linux-arm-kernel@lists.infradead.org \
/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.