psim bug

Andrew Cagney ac131313@cygnus.com
Fri Aug 20 18:49:00 GMT 1999


Daniel Kahlin wrote:
> 
> Hi,
> 
> BUG:
>   When loading sections using 'psim' they incorrectly get placed at their
>   respective VMA's instead of their LMA's.  This makes debugging of romable
>   code impossible, because crt0.S will break when it tries to copy the
>   .data section into ram.
> 
> FIX:
>   Always load sections to their LMA.
>   If the LMA and the VMA differ, mark the LMA area read-only, and
>   allocate the VMA area filling it with zeroes.

It may or may not be a bug.  It really depends on the emulation mode
being used.  Can you post the output from:

	.....-run -t dump-device-tree <program>

thanks,
	Andrew


PS: Please submit patches as text attachments and not as compressed tar
archives (no matter how big :-).  That way the reviewer can quickly
exmaine the change and determine if it is applicable.


More information about the Gdb-patches mailing list