[U-Boot] Uboot: Problem when compiling old Uboot version with new gcc

Prasant J pj0585 at gmail.com
Fri Jan 20 17:59:58 CET 2017


(Sorry for posting about uboot on the eldk mailing list. I am now
posting it on Uboot mailing list)


Hi,

For my Cortex-A5 based ARM Processor (from ADI), I'm trying to compile
old uboot (2015.01) release with a new compiler (gcc6). Its giving the
following error:

arch/arm/cpu/armv7/sc58x/lowlevel_init.S:24: Error: selected processor
does not support `vmsr FPEXC,r0' in ARM mode


portion of lowlevel_init.S
        /*
         * Enable VFP unit
         */
        mrc     p15, 0, r0, c1, c0, 2
        orr     r0, r0, #(0xF << 20)
        mcr     p15, 0, r0, c1, c0, 2
        mov     r0, #0x40000000
        vmsr    FPEXC, r0



Compiler arguments (for arm-none-linux-gnueabi-gcc):
-D__KERNEL__ -D__UBOOT__ -DCONFIG_SYS_TEXT_BASE=0xC2200000
-D__ASSEMBLY__ -g -D__ARM__ -marm -mno-thumb-interwork
-mabi=aapcs-linux -mword-relocations -march=armv7-a
-mno-unaligned-access -ffunction-sections -fdata-sections -fno-common
-ffixed-r9 -msoft-float -pipe


The same compiler arguments when used with old gcc (arm-none-eabi-gcc)
version 4.8 compiles this file.



Any ideas what I may be doing wrong or any suggestions on how to get past this?


Regards, Pj


More information about the U-Boot mailing list