]> rtime.felk.cvut.cz Git - jailhouse-test.git/blob - bootstrap-relink/all-linked-try.ld
fiasco: bootstrap: some other tries to link it all together.
[jailhouse-test.git] / bootstrap-relink / all-linked-try.ld
1 SECTIONS
2 {
3         . = 0;
4         .startup        : { *(.startup) }
5
6         . = 0xfff0;
7         .boot           : {
8                 *(.boot)
9                 . = ALIGN(16);
10         }
11
12         . = 0xe0000;
13
14         _image_start = .;
15         
16         stack_top = .;
17         bss_start = .;
18         
19         .bss            : {
20                 *(.bss .bss.*)
21                 /*COMMON may intersect with something from header-32.S*/
22                 *(COMMON)
23                 . = ALIGN(8);
24         }
25         
26         bss_dwords = SIZEOF(.bss) / 4;
27         bss_qwords = SIZEOF(.bss) / 8;
28
29         . = 0xf0000 + SIZEOF(.startup);
30         .text           : AT (ADDR(.text) & 0xffff) {
31                 *(.text .text.*)
32         }
33
34         . = ALIGN(16);
35         .rodata         : AT (ADDR(.rodata) & 0xffff) {
36                 *(.rodata .rodata.*)
37         }
38
39         . = ALIGN(16);
40         .data           : AT (ADDR(.data) & 0xffff) {
41                 *(.data .data.*)
42
43         }
44         _image_end = .;
45
46         .sixtyfour 0x2d0000 :
47         {
48                 . =  . + 500000;
49         }
50
51         /DISCARD/ : {
52                 *(.note.gnu.build-id)
53                 *(.interp)
54                 *(.comment)
55                 *(.note)
56                 *(.eh_frame)
57         }       
58 }
59 ENTRY(_reset_entry)
60
61