]> rtime.felk.cvut.cz Git - jailhouse-test.git/blob - bootstrap-relink/all-linked-try.ld
343d57bbff520bee037e0628e1cf412d8e60a555
[jailhouse-test.git] / bootstrap-relink / all-linked-try.ld
1 SECTIONS
2 {
3         . = 0;
4         .jh.cmdline     : {
5                 cmdline = 0xf0000; /* adjust relocation address of variable */
6                  header-32-inmate.o (.cmdline)
7                 BYTE(0); /* empty string in case no buffer is provided */
8         }
9
10         /* 16-bit sections */
11         .jh.startup     : { header-32-inmate.o (.startup) }
12
13         . = 0xfff0;
14         .jh.boot                : {
15                 header-32-inmate.o (.boot)
16                 . = ALIGN(16);
17         }
18
19         /* 32/64-bit sections */
20         . = 0xe0000;
21         stack_top = .;
22         bss_start = .;
23         .jh.bss         : {
24                 header-32-inmate.o (.bss)
25                 . = ALIGN(8);
26         }
27         bss_dwords = SIZEOF(.jh.bss) / 4;
28         bss_qwords = SIZEOF(.jh.bss) / 8;
29
30         . = 0xf0000 + ADDR(.jh.startup) + SIZEOF( .jh.startup );
31         .jh.text                : AT (ADDR( .jh.text ) & 0xffff) {
32                 header-32-inmate.o  ( .text)
33         }
34
35         . = ALIGN(16);
36         .jh.rodata              : AT (ADDR(.jh.rodata) & 0xffff) {
37                 header-32-inmate.o (.rodata)
38         }
39
40         . = ALIGN(16);
41         .jh.data                : AT (ADDR(.jh.data) & 0xffff) {
42                 header-32-inmate.o  (.data)
43         }
44         
45         /*fiasco section*/
46         . =  0x00100000 - 0xf0000;
47         _image_start = .;
48         .text :
49         {
50         *( EXCLUDE_FILE (header-32-inmate.o) .text .text.*)
51         *( EXCLUDE_FILE (header-32-inmate.o) .rodata .rodata.*)
52         } =0x9090
53
54         .data :
55         {
56         *( EXCLUDE_FILE (header-32-inmate.o) .data .data.*)
57         *( EXCLUDE_FILE (header-32-inmate.o) .bss .bss.*)
58         *( EXCLUDE_FILE (header-32-inmate.o) COMMON)
59         }
60         _image_end = .;
61
62         .sixtyfour 0x2d0000 - 0xf0000 :
63         {
64                 . =  . + 500000;
65         }
66
67         /DISCARD/ : {
68                 *(.note.gnu.build-id)
69                 *(.interp)
70                 *(.comment)
71                 *(.note)
72                 *(.eh_frame)
73         }       
74 }
75 ENTRY(__reset_entry)
76
77