Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* use LMA instead of VMA?
@ 2006-06-10 21:04 Torsten Mohr
  2006-06-10 23:42 ` DJ Delorie
  0 siblings, 1 reply; 5+ messages in thread
From: Torsten Mohr @ 2006-06-10 21:04 UTC (permalink / raw)
  To: gdb

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-11  0:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-10 21:04 use LMA instead of VMA? 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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox