]> rtime.felk.cvut.cz Git - jailhouse.git/blob - hypervisor/hypervisor.lds.S
core: add the ability to use arch-specific linker scripts
[jailhouse.git] / hypervisor / hypervisor.lds.S
1 /*
2  * Jailhouse, a Linux-based partitioning hypervisor
3  *
4  * Copyright (c) Siemens AG, 2013
5  *
6  * Authors:
7  *  Jan Kiszka <jan.kiszka@siemens.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2.  See
10  * the COPYING file in the top-level directory.
11  */
12
13 #include <asm/paging.h>
14 #include <asm/jailhouse_hypercall.h>
15
16 SECTIONS
17 {
18         . = JAILHOUSE_BASE;
19         .header         : { *(.header) }
20
21         . = ALIGN(16);
22         __text_start = .;
23         .text           : { *(.text) }
24
25 #ifdef ARCH_LINK
26 #include <asm/sections.lds>
27 #endif
28
29         . = ALIGN(16);
30         .rodata         : { *(.rodata) }
31
32         . = ALIGN(16);
33         .data           : { *(.data) }
34
35         . = ALIGN(16);
36         .bss            : { *(.bss) }
37         __hv_core_end = .;
38
39         . = ALIGN(PAGE_SIZE);
40         __page_pool = .;
41
42         .eh_frame       : { *(.eh_frame*) }
43 }