From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9894 invoked by alias); 13 Nov 2001 18:05:52 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9873 invoked from network); 13 Nov 2001 18:05:51 -0000 Received: from unknown (HELO localhost.cygnus.com) (216.138.202.10) by sourceware.cygnus.com with SMTP; 13 Nov 2001 18:05:51 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 5583B3D6C; Tue, 13 Nov 2001 13:05:50 -0500 (EST) Message-ID: <3BF160FD.7060100@cygnus.com> Date: Thu, 01 Nov 2001 16:30:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.3) Gecko/20011020 X-Accept-Language: en-us MIME-Version: 1.0 To: Vermeulen Jan Cc: "'gdb@sources.redhat.com'" Subject: Re: powerpc simulator questions References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg00030.txt.bz2 > 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