i386 native AROS has now support for loadable modules. There is no need for a togethe...
[AROS.git] / arch / i386-pc / bootstrap / kernel.lds
blob96a2492148d4a1a5a7f7326043b2e0dfb3b3253c
1 FORCE_COMMON_ALLOCATION
3 SECTIONS
5     .text : {
6         __text_start = .;
7     *(.aros.init)
8         *(.text*)                   /* wildcard for "gcc -ffunction-sections" */
9         *(.gnu.linkonce.t.*)        /* C++ templates? */
10         __text_end = .;
11     }
12     
13     . = ALIGN(64);
14     
15     .rodata : {
16         __rodata_start = .;
17         
18         *(.rodata*)                 /* read-only data (ELF only) */
19         *(.gnu.linkonce.r.*)
20         
21         __rodata_end = .;
22     }
23     
24     . = ALIGN(4096);
25     
26     .data : {
27         __data_start = .;
28         
29         *(.data*)                   /* wildcard for "gcc -fdata-sections" */
30         *(.gnu.linkonce.d.*)
31         . = ALIGN(16);
32         start_ctors = .; *(SORT(.ctor*)) QUAD(0)
33         start_dtors = .; *(SORT(.dtor*)) QUAD(0)
34         
35         __data_end = .;
36        
37     }
39     .bss : {
40        . = ALIGN(4096);
42         __bss_start = .;
43         PROVIDE(_edata = .);
44         *(.bss*)                    /* wildcard for "gcc -fdata-sections" */
45         *(.gnu.linkonce.b.*)
46         *(COMMON)                   /* "common" variables */
47         __bss_end = .;
48         PROVIDE(_end = .);
49     }
51