]> git.buserror.net Git - polintos/scott/priv.git/blob - kernel/arch/x86/linker-script
minor doc updates
[polintos/scott/priv.git] / kernel / arch / x86 / linker-script
1 ENTRY(_start)
2 PHDRS
3 {
4         all PT_LOAD FILEHDR PHDRS AT (0x80200000);
5 }
6 SECTIONS
7 {
8         . = 0x80200000 + SIZEOF_HEADERS;
9         .text : { 
10                 *(.text)        *(.gnu.linkonce.t.*)
11                 *(.rodata*) *(.gnu.linkonce.r.*)
12                 . = (. + 3) & ~ 3;
13                 eh_frame_begin = .;
14                 *(.eh_frame)
15                 LONG(0)
16                 *(.rela.eh_frame) *(.gcc_except_table)
17                 . = (. + 3) & ~ 3;
18                 ctors = .;
19                 *(.ctors)
20                 LONG(0)
21                 ctors_end = .;
22                 *(.irqs)
23                 *(.excode)
24         } :all
25         . = (. + 0xfff) & ~ 0xfff;
26         roshared_start = .;
27         .roshared : { *(.roshared) } :all
28         roshared_end = .;
29         . = . | 0xfff;
30         roshared_page_end = .;
31         . = . + 1;
32         rwshared_start = .;
33         .shared_data : { *(.rwshared) } :all
34         rwshared_end = .;
35         . = . | 0xfff;
36         rwshared_page_end = .;
37         . = . + 1;
38         data_start = .;
39         .data : { *(.data) *(.gnu.linkonce.d.*)  } :all
40         .extable : {
41                 extable_start = .;
42                 *(.extable)
43                 extable_end = .;
44         } :all
45         bss_start = .;
46         .bss : { *(.bss) } :all
47         bss_end = .;
48         _end = .;
49 }