Hi everyone,
I am trying to build the At91bootstrap for SAMA5D3xek. I have followed the steps as per "android4sam/bin/view/Android4SAM/Sama5d3xek", after giving make command, the assembler throws "unrecognized instruction" error for each instruction in file crt0_gnu.S.
Is there a way to fix it?

Alternatives tried:
On inspecting Makefile I have found that the compiler gcc has been used for assembly files. Thinking that this would be the culprit I changed gcc to as:
AS=$(CROSS_COMPILE)gcc
to
AS=$(CROSS_COMPILE)as

But I have received the following error:
avr32-gnu-toolchain-linux_x86_64/bin/avr32-as: unrecognized option '-Os'

Again I removed the option -Os from ASFLAGS. I have ended up with the following error:
avr32-gnu-toolchain-linux_x86_64/bin/avr32-as: unrecognized option '-UMP_ADDR=0x26F00000'