here is my Makefile:
# link
$(TARGET).bin : $(OBJS)
$(LD) -Timx6ul.lds -o $(TARGET).elf $^ $(LIBPATH)
$(OBJCOPY) -O binary -S $(TARGET).elf $@
$(OBJDUMP) -D -m arm $(TARGET).elf > $(TARGET).dis
# assembly
$(SOBJS) : obj/%.o : %.S
$(CC) -Wall -mcpu=cortex-a7 -mthumb -mfpu=neon-vfpv4 -nostdlib -fno-builtin -c -O2 $(INCLUDE) -o $@ $<
# c compile
$(COBJS) : obj/%.o : %.c
$(CC) -Wall -mcpu=cortex-a7 -Wa,-mimplicit-it=thumb -mfpu=neon-vfpv4 -nostdlib -fno-builtin -c -O2 $(INCLUDE) -o $@ $<
When I use arm-none-eabi-gcc 9.2.1, it failed and the detail error info is as follows:
/tmp/ccpsScS9.s: Assembler messages:
/tmp/ccpsScS9.s:258: Error: selected processor does not support `vmrs r3,fpexc' in ARM mode
/tmp/ccpsScS9.s:265: Error: selected processor does not support `vmsr fpexc,r3' in ARM mode
However, it works when I use arm-linux-gnueabihf-gcc 4.9.4.
I just wanna know what happened when I use arm-none-eabi-gcc 9.2.1, does it not support ‘vmsr‘? or, is there anything wrong in my Makefile?
New contributor
hy n is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.