below are some code of lines which are compatible with arm assembler I want to convert these to their gnu equivalents. Basically I was trying to run a code on bare metal cortex-r4 and after looking over the internet I cannot find a startup and linker file for gnu ( for cortex-r4) so finally decided to convert these to gnu assembly. I tried and changed these before but there were some errors (however the code compiled smoothly, error were run time)
PRESERVE8
AREA VECTORS, CODE, READONLY ; Name this block of code
ENTRY
EXPORT Start
Start
IMPORT ||Image$$ARM_LIB_STACKHEAP$$ZI$$Limit||
LDR SP, =||Image$$ARM_LIB_STACKHEAP$$ZI$$Limit||
DCD
IF {TARGET_FPU_VFP}
If you can provide or guide me to a startup or linker file it would be a plus
regards,