UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
3,060 Views
Registered: ‎05-12-2016

Compiling spi rec boot loader with a custom toolchain

Hi!

 

In order to ease and integrate all the code I use around this system I'm building I want to compile both the BSP and the bootloader using a toolchain built by buildroot. This compiler should be able to do this, but I'm facing an error on the last stage of the compilation. I've succesfully built the BSP (although tinkering a little, as I don't use newlib), but the final bootloader.elf doesn't get built because of this:

 

Building target: bootloader.elf
Invoking: MicroBlaze gcc linker
/home/dev/mb/output/host/usr/bin/microblazeel-linux-gcc -Wl,-T -Wl,lscript.ld -L../bsp/lib -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mno-xl-soft-div -mcpu=v9.6 -mno-xl-soft-mul -mxl-multiply-high -Wl,--no-relax -o "bootloader.elf" bootloader.o platform.o srec.o  -Wl,--start-group,-lxil,-lgcc,-lc,--end-group -Wl,--start-group,-lxilisf,-lxil,-lgcc,-lc,--end-group
/home/dev/mb/Proyectos/ART/ESA/DRVM-software.git/DRVM/output/host/usr/microblazeel-buildroot-linux-gnu/sysroot/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
(.text+0x44): undefined reference to `__init_array_start'
/home/dev/mb/output/host/usr/microblazeel-buildroot-linux-gnu/sysroot/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
(.text+0x4c): undefined reference to `__init_array_end'
collect2: error: ld returned 1 exit status
Makefile:32: recipe for target 'bootloader.elf' failed

What's the reason for this, where lies the difference between this and the result of using mb-gcc, and how shall I try to solve it?

 

Thank you!

0 Kudos