This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: psim bug
- To: Daniel Kahlin <tlr@netinsight.se>
- Subject: Re: psim bug
- From: Andrew Cagney <ac131313@cygnus.com>
- Date: Sat, 21 Aug 1999 11:49:07 +1000
- CC: gdb-patches@sourceware.cygnus.com, "seved.torstendahl@netinsight.se" <seved.torstendahl@netinsight.se>, ace@netinsight.se, psim@ci.com.au
- Organization: Cygnus Solutions
- References: <37BD6FCA.C433AC4E@netinsight.se>
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.
- References:
- psim bug
- From: Daniel Kahlin <tlr@netinsight.se>