From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23254 invoked by alias); 5 Mar 2004 20:52:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23239 invoked by alias); 5 Mar 2004 20:52:41 -0000 Date: Fri, 05 Mar 2004 20:52:00 -0000 Message-ID: <20040305205241.23238.qmail@sources.redhat.com> From: "wilson at specifixinc dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040305063834.14443.axes_ecos2000@yahoo.co.in> References: <20040305063834.14443.axes_ecos2000@yahoo.co.in> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug bootstrap/14443] Problem while Linking the files X-Bugzilla-Reason: CC X-SW-Source: 2004-03/txt/msg00745.txt.bz2 List-Id: ------- Additional Comments From wilson at specifixinc dot com 2004-03-05 20:52 ------- Subject: Re: New: Problem while Linking the files axes_ecos2000 at yahoo dot co dot in wrote: > I have used the gnutools for compilation and linking . But i have used > different linkscript which is not the downloaded one. Your linker script is broken. All of the "no memory region specified for section" errors are bugs in your linker script. You need to add all of these missing sections with wildcards. E.g. add .sdata.* right after .sdata. /gnutools/bin/powerpc-eabi-ld - > o /ecos16/exec/Ecos1 /ecos16/sysInit/gwyStartup.o /ecos16/compile/main.o /opt/ec > os-2.0/packages/kernel/v2_0/src/common/clock.o /opt/ecos- >... > 2.0/packages/kernel/v2_0/src/sync/mbox.o /opt/ecos- > 2.0/packages/kernel/v2_0/src/sync/mqueue.o -L/ecos16/compile -lc -relax - > Map /ecos16/exec/Ecos1.map -T /ecos16/compile/lnkscrpt.lnk You are not linking in some necessary libraries, such as libgcc. This may be a bug in your link command, or it may be a bug in your linker script. It may be the case that the downloaded one is brining in libraries that you need, and your own linker scrips is missing these lines. Or is may be the case that you are calling ld directly instead of using gcc to link. If you use gcc to link, it will add the libraries you need. It is usually a bad idea to call ld directly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14443