[ECOS] Linkerscript
Lars Viklund
lars.viklund@axis.com
Fri Oct 1 06:25:00 GMT 2004
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
More information about the Ecos-discuss
mailing list