mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Pennace <alex@pennace.org>
To: Jason Yan <jasonyanjk@yahoo.com>
Cc: "linux-kernel @ vger. kernel. org" <linux-kernel@vger.kernel.org>
Subject: Re: Is there any story about the magic number 0x08048000 in  "ld" internal linker script ?
Date: Thu, 21 Feb 2002 15:45:18 -0500	[thread overview]
Message-ID: <20020221204518.GA27989@buick.pennace.org> (raw)
In-Reply-To: <20020220215605.KXU6407.tomts21-srv.bellnexxia.net@abc337>
In-Reply-To: <20020220215605.KXU6407.tomts21-srv.bellnexxia.net@abc337>

On Wed, Feb 20, 2002 at 04:55:26PM -0800, Jason Yan wrote:
> Hi,
> 
> When I use gdb to trace/debug my program, I notice that the programe linear address always start from 0x8048xxx, then I use "ld --verbose" to display the internal linker script, I find an interesting address 0x08048000 :
> 
> SECTIONS
> {
>   /* Read-only sections, merged into text segment: */
>   . = 0x08048000 + SIZEOF_HEADERS
>   ......snip....
> 
> that's where 0x8048xxx comes from. I'm just curious, why 0x08048000 not other number? Any story?

0x8048000 is the typical starting point for the text segment according
to the System V Intel 386 ABI specification
(<http://stage.caldera.com/developer/devspecs/abi386-4.pdf>).

      parent reply	other threads:[~2002-02-21 20:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-21  0:55 Jason Yan
2002-02-20 22:34 ` Richard B. Johnson
2002-02-21 20:45 ` Alex Pennace [this message]

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=20020221204518.GA27989@buick.pennace.org \
    --to=alex@pennace.org \
    --cc=jasonyanjk@yahoo.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®