From: Torsten Mohr <tmohr@s.netic.de>
To: gdb@sourceware.org
Subject: use LMA instead of VMA?
Date: Sat, 10 Jun 2006 21:04:00 -0000 [thread overview]
Message-ID: <200606101707.58539.tmohr@s.netic.de> (raw)
Hi,
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.
For this i can't test my code in the simulator, as .data
and so on are always overwritten with incorrect data.
At the moment i use the preprocessor and -DREAL_TARGET=0 or =1
to generate an ELF file for the target or for the simulator.
Is there a better way to work around gdbs behaviour here?
Would it work to use objcopy --change-section-vma .data= \
load_address(.data) to set a sections vma?
Or would that crash something else then?
What else would be the preferred way to test a startup code?
Best regards,
Torsten.
next reply other threads:[~2006-06-10 16:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-10 21:04 Torsten Mohr [this message]
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
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=200606101707.58539.tmohr@s.netic.de \
--to=tmohr@s.netic.de \
--cc=gdb@sourceware.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