ARM ABI requires stack to be aligned on a 64-bit boundary
[bertos.git] / bertos / cpu / arm / scripts / at91sam7_512_ram.ld
index 66c4f1679e398617974613b3e1651b2aeeb2ceff..64d2ad56d31c2e47019d1083ec225073ee550c27 100644 (file)
@@ -114,27 +114,27 @@ SECTIONS
 
        PROVIDE (__stack_fiq_start = .);
        . += FIQ_STACK_SIZE;
-       . = ALIGN(4);
+       . = ALIGN(8);
        PROVIDE (__stack_fiq_end = .);
 
        PROVIDE (__stack_irq_start = .);
        . += IRQ_STACK_SIZE;
-       . = ALIGN(4);
+       . = ALIGN(8);
        PROVIDE (__stack_irq_end = .);
 
        PROVIDE (__stack_abt_start = .);
        . += ABT_STACK_SIZE;
-       . = ALIGN(4);
+       . = ALIGN(8);
        PROVIDE (__stack_abt_end = .);
 
        PROVIDE (__stack_und_start = .);
        . += UND_STACK_SIZE;
-       . = ALIGN(4);
+       . = ALIGN(8);
        PROVIDE (__stack_und_end = .);
 
        PROVIDE (__stack_svc_start = .);
        . += SVC_STACK_SIZE;
-       . = ALIGN(4);
+       . = ALIGN(8);
        PROVIDE (__stack_svc_end = .);
 
        PROVIDE (__stack_end = .);