]> rtime.felk.cvut.cz Git - jailhouse.git/blob - inmates/lib/arm/inmate.lds
inmates: arm: Initialize bss programmatically
[jailhouse.git] / inmates / lib / arm / inmate.lds
1 /*
2  * Jailhouse, a Linux-based partitioning hypervisor
3  *
4  * Copyright (c) ARM Limited, 2014
5  * Copyright (c) Siemens AG, 2016
6  *
7  * Authors:
8  *  Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
9  *  Jan Kiszka <jan.kiszka@siemens.com>
10  *
11  * This work is licensed under the terms of the GNU GPL, version 2.  See
12  * the COPYING file in the top-level directory.
13  */
14
15 SECTIONS {
16         . = 0;
17         .boot           : { *(.boot) }
18
19         . = ALIGN(4);
20         .text           : {
21                 *(.text)
22         }
23
24         .rodata         : {
25                 *(.rodata)
26         }
27
28         .data           : {
29                 *(.data)
30         }
31
32         .bss            : {
33                 bss_start = .;
34                 *(.bss)
35                 . = ALIGN(4);
36         }
37         bss_dwords = SIZEOF(.bss) / 4;
38
39         . = ALIGN(4096);
40         . += 0x1000;
41         stack_top = .;
42 }
43
44 ENTRY(__reset_entry)