This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Linkerscript
- From: Lars Viklund <lars dot viklund at axis 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: Fri, 01 Oct 2004 08:25:13 +0200
- Subject: RE: [ECOS] Linkerscript
- References: <6B80E71673E6D611AC1D0008C7F37BC203F8E5E2@wt15.wt.tno.nl>
On Thu, 2004-09-30 at 16:04, Meulendijks, J. wrote:
> Maybe I'm stupid but I tried that and it doesn't work for me. :-(
Note that "c:/eCos-Work/default_install/lib/data.o" is _not_ the same
file name as "data.o".
> Command:
> powerpc-eabi-ld -g -I/ecos-c/ecos-work/default_install/include -nostartfiles
> -L/ecos-c/ecos-work/default_install/lib -L/ecos-c/eCos/opt/ecos/gnutools/powerpc
> -eabi/lib/gcc-lib/powerpc-eabi/3.2.1/ -L/ecos-c/eCos/opt/ecos/gnutools/powerpc-e
> abi/powerpc-eabi/lib/ -Ttarget.ld -nostdlib -o twothreads.elf -Map twothreads.ma
> p twothreads.o c:/eCos-Work/default_install/lib/data.o
>
> Output:
> powerpc-eabi-ld: cannot open data.o: No such file or directory
> make: *** [twothreads.elf] Error 1
>
> Linkerscript:
> MEMORY
> {
> ...
> ROM : org = 0x20002100, l = 0x000F0000
> ...
> }
>
> SECTIONS
> {
> ...
> .ecos_data : { data.o(.data*) } > ROM
> ...
> }
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss