This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Linking problem
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "Meulendijks, J." <Meulendijks at WT dot TNO dot NL>
- Cc: "'ecos-discuss at ecos dot sourceware dot org'" <ecos-discuss at ecos dot sourceware dot org>
- Date: 24 Sep 2004 10:18:09 +0100
- Subject: Re: [ECOS] Linking problem
- References: <6B80E71673E6D611AC1D0008C7F37BC203F8E5DA@wt15.wt.tno.nl>
"Meulendijks, J." <Meulendijks@WT.TNO.NL> writes:
> When I try to link twothreads.o (Example from ecos) I get the following:
> Command used to link:
> powerpc-eabi-ld -g -nostartfiles -Lc:/ecos-work/ecos_install/lib -Map .\output/l
> ink.map -Ttarget.ld -nostdlib .\obj/twothreads.o -Lc:/cygwin/gnu/powerpc/lib -Lc
> :/cygwin/gnu/powerpc/lib/eCos -o .\output/ram.elf
Try moving the -L options to before the -T option. Put the object file
at the end of the line. I also don't think you need the
"-Lc:/cygwin/gnu/powerpc/lib", this is included automatically by the
toolchain.
The order of arguments is important, take a look at how the eCos
makefiles put link commands together. Better, use the example Makefile
in the examples directory.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss