This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Error creating RedBoot for LEON
- From: Agus Ariffianto <aariffianto at students dot ee dot itb dot ac dot id>
- To: ecos-discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: 16 Jul 2006 17:56:19 +0700
- Subject: [ECOS] Error creating RedBoot for LEON
I am trying to build RedBoot disk for LEON (implemented on Altera
Stratix board. Please let me know if my steps are wrong.
I successfully created header and library files (including target.ld)
using configtool.
But I was failed compiling a simple hello program, using the library and
header files (and target.ld file). Here are what I did:
1. Create header and library files using configtool => ok
2. Compile helo.c
[agus@lskk-71 sparc-elf-3.2.3]$ sparc-elf-gcc -O2 -msoft-float
helloecos.c -o helloecos.ecos -I redboot-leon_install/include/ -L
redboot-leon_install/lib/ -Ttarget.ld -nostdlib
/tmp/ccq5fcnz.o: In function `main':
helloecos.c:(.text+0xc): undefined reference to `puts'
collect2: ld returned 1 exit status
as a comparison (hopefully it can help)
[agus@lskk-71 sparc-elf-3.2.3]$ sparc-elf-gcc -O2 -msoft-float
helloecos.c -o helloecos.ecos -I redboot-leon_install/include/ -L
redboot-leon_install/lib/ -Ttarget.ld
/opt/sparc-elf-3.2.3/lib/gcc-lib/sparc-elf/3.2.3/../../../../sparc-elf/bin/ld: error: no memory region specified for loadable section `.jcr'
collect2: ld returned 1 exit status
and this:
[agus@lskk-71 sparc-elf-3.2.3]$ sparc-elf-gcc -O2 -msoft-float -I
redboot-leon_install/include/ -L redboot-leon_install/lib/ helloecos.c
-o helloecos.ecos -nostdlib
/opt/sparc-elf-3.2.3/lib/gcc-lib/sparc-elf/3.2.3/../../../../sparc-elf/bin/ld: warning: cannot find entry symbol start; defaulting to 40000000
/tmp/ccOC5tgM.o: In function `main':
helloecos.c:(.text+0xc): undefined reference to `puts'
collect2: ld returned 1 exit status
[agus@lskk-71 sparc-elf-3.2.3]$
I have no idea what went wrong. Thank you.
Rgds,
Agus
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss