This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/14443] Problem while Linking the files
- From: "wilson at specifixinc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2004 20:52:41 -0000
- Subject: [Bug bootstrap/14443] Problem while Linking the files
- References: <20040305063834.14443.axes_ecos2000@yahoo.co.in>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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