initial commit
[eightysix] / boot.ld
1 OUTPUT_FORMAT(binary)
2 ENTRY(_start)
3
4 SECTIONS {
5         . = 0x7c00;
6         .bootsect : {
7                 * (.bootsect);
8         }
9
10         . = 0x7e00;
11         _stage2_start = .;
12         .text : {
13                 * (.startup);
14                 * (.text*);
15         }
16         .data : {
17                 * (.rodata*);
18                 * (.data*);
19         }
20         .bss ALIGN(4) (NOLOAD): {
21                 _bss_start = .;
22                 * (.bss*);
23                 * (COMMON);
24                 . = ALIGN(4);
25         }
26         _bss_size = SIZEOF(.bss);
27         . = ALIGN(4);
28         _stage2_end = .;
29 };