This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: use LMA instead of VMA?
- From: DJ Delorie <dj at redhat dot com>
- To: tmohr at s dot netic dot de
- Cc: gdb at sourceware dot org
- Date: Sat, 10 Jun 2006 17:04:22 -0400
- Subject: Re: use LMA instead of VMA?
- References: <200606101707.58539.tmohr@s.netic.de>
> 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.
Maybe you need to tell us more about how your code is set up?