xref: /kvm-unit-tests/arm/flat.lds (revision ad14f089be824ef2baebb5960649271119c46d66)
1
2SECTIONS
3{
4    .text : { *(.init) *(.text) *(.text.*) }
5    . = ALIGN(64K);
6    etext = .;
7    .data : {
8        exception_stacks = .;
9        . += 64K;
10        exception_stacks_end = .;
11        *(.data)
12    }
13    . = ALIGN(16);
14    .rodata : { *(.rodata) }
15    . = ALIGN(16);
16    .bss : { *(.bss) }
17    . = ALIGN(64K);
18    edata = .;
19    . += 64K;
20    . = ALIGN(64K);
21    /*
22     * stack depth is 16K for arm and PAGE_SIZE for arm64, see THREAD_SIZE
23     * sp must be 16 byte aligned for arm64, and 8 byte aligned for arm
24     * sp must always be strictly less than the true stacktop
25     */
26    stackptr = . - 16;
27    stacktop = .;
28}
29
30ENTRY(start)
31