[Buildroot] Bare metal toolchain support?

Arnout Vandecappelle arnout at mind.be
Thu Nov 24 20:41:59 UTC 2016



On 23-11-16 17:44, Alvaro Gamez wrote:
> Hi!
> 
> 
> 2016-11-23 15:49 GMT+01:00 Alvaro Gamez <alvaro.gamez at hazent.com
> <mailto:alvaro.gamez at hazent.com>>:
> 
>     Under Xilinx':
>     00000000  0000001e R_MICROBLAZE_32_NONE              c
> 
>     Under buildroots':
>     00000000  0000001e unrecognized: 1e                 c
> 
> 
> I've made some progress on this. There was something wrong on my setup
> that made it use some toolchain apps from Xilinx but some others from buildroot,
> so it's even a miracle it reached that far. Once solved lots of environment
> variables
> and the like, there remains just this one error on compilation:
> 
> /home/sslayer/Proyectos/ART/ESA/DRVM-software.git/DRVM/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/sslayer/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/sslayer/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+0x4c): undefined reference to `__init_array_end'
> collect2: error: ld returned 1 exit status
> Makefile:32: recipe for target 'bootloader.elf' failed
> make: *** [bootloader.elf] Error 1
> 
> 
> So... back to square oneI guess. I don't know what to do with this now.

 I haven't followed this in detail, but is there any reason why
CC="$(TARGET_CC) -ffreestanding" doesn't work?

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF



More information about the buildroot mailing list