initial commit
[rpikern] / rpikern.ld
1 SECTIONS {
2         . = 0x00008000;
3         _kern_start = .;
4
5         .startup : { KEEP(* (.startup)) }
6         .text : { * (.text); }
7         .rotdata : { * (.rodata); }
8         .data : { * (.data); }
9
10         .bss ALIGN(4): {
11                 _bss_start = .;
12                 * (.bss);
13                 . = ALIGN(4);
14                 _bss_end = .;
15         }
16         _bss_size = SIZEOF(.bss);
17
18         _kern_size = . - _kern_start;
19         _mem_start = .;
20 }