From: Daniel Jacobowitz <drow@false.org>
To: DJ Delorie <dj@redhat.com>
Cc: tmohr@s.netic.de, gdb@sourceware.org
Subject: Re: use LMA instead of VMA?
Date: Sun, 11 Jun 2006 00:20:00 -0000 [thread overview]
Message-ID: <20060610234704.GA10641@nevyn.them.org> (raw)
In-Reply-To: <200606102104.k5AL4Mcc028893@greed.delorie.com>
On Sat, Jun 10, 2006 at 05:04:22PM -0400, DJ Delorie wrote:
>
> > i'd like to test my startup code in crt0.S but have some problems
> > with that as gdb uses the sections VMA instead of the LMA.
>
> Why would this confuse gdb? If the crt0 code is *running* it should
> already be at its VMA. In the cases where LMA and VMA differ in my
> projects, it's because I need to initialize RAM from ROM, so I don't
> need gdb to know about the data until after I've moved it to its VMA.
This seems to be a pretty standard problem - if you have any kind of
loader, then your crt0 is expected to run at VMA, but if you don't have
a loader, crt0 has to run at LMA and handles the switch to VMAs. I've
used a couple different sets of tools now that behaved this way, most
recently ARM's.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2006-06-10 23:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-10 21:04 Torsten Mohr
2006-06-10 23:42 ` DJ Delorie
2006-06-10 23:47 ` Torsten Mohr
2006-06-13 5:03 ` DJ Delorie
2006-06-11 0:20 ` Daniel Jacobowitz [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=20060610234704.GA10641@nevyn.them.org \
--to=drow@false.org \
--cc=dj@redhat.com \
--cc=gdb@sourceware.org \
--cc=tmohr@s.netic.de \
/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