This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: use LMA instead of VMA?


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]