From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2100 invoked by alias); 31 Mar 2004 08:17:50 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 2082 invoked from network); 31 Mar 2004 08:17:49 -0000 Received: from unknown (HELO cicero1.cybercity.dk) (212.242.40.4) by sources.redhat.com with SMTP; 31 Mar 2004 08:17:49 -0000 Received: from user1.cybercity.dk (fxp0.user1.ip.cybercity.dk [212.242.41.34]) by cicero1.cybercity.dk (Postfix) with ESMTP id 30CD57E2D4B for ; Wed, 31 Mar 2004 10:17:49 +0200 (CEST) Received: from PNF (port317.ds1-soeb.adsl.cybercity.dk [217.157.137.198]) by user1.cybercity.dk (Postfix) with SMTP id C578D750582 for ; Wed, 31 Mar 2004 10:17:48 +0200 (CEST) Message-ID: <002301c416f8$df4618b0$0200000a@PNF> From: "Peter Franklen" To: References: <1080720393.30127.ezmlm@gcc.gnu.org> Subject: Linking embedded V850 applications? Date: Wed, 31 Mar 2004 14:14:00 -0000 Organization: IBIS Solutions MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00347.txt.bz2 Hi, I am using gnuxtools GCC 3.3.2 (I don't use any C++ features, only pure ANSI C) on the Windows 2000 platform for V850 embedded development. My embedded system is rather simple with 256K internal Flash ROM starting at 0x000000 and 16K internal memory starting at 0xffffb000. My main problem is linking my application. First of all, when I try to setup a simple linker script I get a lot of messages with undefined references to symbols like __ctbp, __ep and __gp, ___dtors_end etc. I have found huge linker scripts that somehow seams to deal with these references, but I haven't yet been able to modify any of these to produce a runable application. I'm having a feeling that I'm doing something wrong here. Do I need another library clib.a or crt0.o? Can anybody help me? Best regards Peter Franklen