This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linking problem


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]