]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
inmates: arm: Move stack page behind the image
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 2 Jan 2016 12:52:27 +0000 (13:52 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 8 Jan 2016 18:34:38 +0000 (19:34 +0100)
By moving the stack behind other sections, we can shrink the image files
by this page.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
inmates/lib/arm/inmate.lds

index c5d82c21a0eafb16ce0e7bf201887d4d5445935d..726416a2a42aed209da993eb12da9be2149fbf77 100644 (file)
@@ -14,9 +14,6 @@ SECTIONS {
        . = 0;
        .boot           : { *(.boot) }
 
-       . = ALIGN(4096);
-       . = . + 0x1000;
-       stack_top = .;
        bss_start = .;
        .bss            : {
                *(.bss)
@@ -35,6 +32,10 @@ SECTIONS {
        .data           : {
                *(.data)
        }
+
+       . = ALIGN(4096);
+       . += 0x1000;
+       stack_top = .;
 }
 
 ENTRY(__reset_entry)