This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: powerpc simulator questions
- To: Vermeulen Jan <Jan dot Vermeulen at siemens dot atea dot be>
- Subject: Re: powerpc simulator questions
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 13 Nov 2001 13:05:49 -0500
- Cc: "'gdb at sources dot redhat dot com'" <gdb at sources dot redhat dot com>
- References: <E76F715C0429D5118F2100508BB9EDEE0261359D@hrtades7.atea.be>
[Get raw message]
> OUTPUT_ARCH(powerpc) /* Specify the output machine architecture */
>
> ENTRY(main);
>
> /*
> MEMORY
> {
> vects (rx): ORIGIN = 0x0, LENGTH = 1023
> rom1 (rx): ORIGIN = 0x400, LENGTH= 511K
> ramcode (rwx): ORIGIN = 0x800000, LENGTH = 2048K
> ramdata (rw): ORIGIN = 0x0A00000, LENGTH = 2048K
> }
> */
>
> SECTIONS {
> . = 0x0;
> .vector0 :
> {
> LONG(ABSOLUTE( main ))
> }
> . = 0x400;
> .text :
> {
> *(.text)
> }
> . = 0xA00000;
> .data :
> {
> *(.data)
> }
> .bss :
> {
> *(.bss)
> end = ALIGN(0x8);
> }
> }
>
> Then i ran insight, did "target sim", "load" and it spit out something like
> /openprom/init/load-binary: broken transfer.
That sounds like a lack of memory.
Try ``target sim -t print-device-tree''. It will dump out a heap of
info. At the bottom should be something like:
/memory@0/reg 0 0x100000
which indicates 1mb of ram at address zero. Your program looks to be
loading at 0x800000.
Andrew