Linux assembly list
 help / color / mirror / Atom feed
From: Brian Raiter <breadbox@muppetlabs.com>
To: pei lin <telent998@gmail.com>
Cc: Chris Evans <teknopup@gmail.com>, linux-assembly@vger.kernel.org
Subject: Re: why linux ELF base address is 0x8048000?
Date: Wed, 4 Feb 2009 18:59:46 -0800	[thread overview]
Message-ID: <18826.22050.739005.994893@eidolon.muppetlabs.com> (raw)
In-Reply-To: <d6b7c4190902041758udbf450bg2972b9d7d89b4979@mail.gmail.com>

>   why linux ELF base address is 0x8048000? we can use ld to change
> the base address or linker script.BUT why default is 0x8048000?
> There must be some reasons or history i don't know.

As far as I can tell, the reason is that this was the address used by
SVR4, which was the first release of Unix to use ELF executables.

The reason that SVR4 chose that particular address is that the stack
top was located at 0x08000000 (growing downward, of course), and then
the area between 0x08000000 and 0x08048000 was reserved for libc and
possibly other system service code.

b

  reply	other threads:[~2009-02-05  2:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-03  9:25 why linux ELF base address is 0x8048000? pei lin
     [not found] ` <73512bc10902032321n863a27by7ac63193dfc4488a@mail.gmail.com>
2009-02-05  1:58   ` pei lin
2009-02-05  2:59     ` Brian Raiter [this message]
2009-02-06  5:38       ` pei lin

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=18826.22050.739005.994893@eidolon.muppetlabs.com \
    --to=breadbox@muppetlabs.com \
    --cc=linux-assembly@vger.kernel.org \
    --cc=teknopup@gmail.com \
    --cc=telent998@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