Bugfixes, Cleanup and Rewite started on UDI interface
[tpg/acess2.git] / Kernel / arch / x86 / link.ld
1 /*
2  * AcessMicro Kernel
3  * Linker Script
4  */
5
6 lowStart = start - 0xC0000000;
7 ENTRY(lowStart)
8 OUTPUT_FORMAT(elf32-i386)
9
10 SECTIONS {
11         . = 0x100000;
12         .multiboot : AT(ADDR(.multiboot)) {
13                 *(.multiboot)
14         }
15         
16         . += 0xC0000000;
17         
18         .text ALIGN(0x1000): AT(ADDR(.text) - 0xC0000000) {
19                 *(.text)
20         }
21         
22         .usertext ALIGN(0x1000): AT(ADDR(.usertext) - 0xC0000000) {
23                 _UsertextBase = .;
24                 *(.usertext)
25         }
26         
27         .rodata ALIGN(0x1000): AT(ADDR(.rodata) - 0xC0000000) {
28                 *(.initpd)
29                 *(.rodata)
30                 *(.rdata)
31                 gKernelModules = .;
32                 *(KMODULES)
33                 gKernelModulesEnd = .;
34                 . = ALIGN(4);
35                 gKernelSymbols = .;
36                 *(KEXPORT)
37                 gKernelSymbolsEnd = .;
38
39
40         }
41         /*
42         .debug_abbrev : { *(.debug_abbrev) }
43         .debug_info : { *(.debug_info) }
44         .debug_line : { *(.debug_line) }
45         .debug_loc : { *(.debug_loc) }
46         .debug_pubnames : { *(.debug_pubnames) }
47         .debug_aranges : { *(.debug_aranges) }
48         .debug_ranges : { *(.debug_ranges) }
49         .debug_str : { *(.debug_str) }
50         .debug_frame : { *(.debug_frame) }
51         */
52         
53         .padata ALIGN (0x1000) : AT(ADDR(.padata) - 0xC0000000) {
54                 *(.padata)
55         }
56         
57         .data ALIGN (0x1000) : AT(ADDR(.data) - 0xC0000000) {
58                 *(.data)
59         }
60
61         .bss : AT(ADDR(.bss) - 0xC0000000) {
62                 _sbss = .;
63                 *(COMMON)
64                 *(.bss)
65                 _ebss = .;
66         }
67         gKernelEnd = (. + 0xFFF)&0xFFFFF000;
68 }

UCC git Repository :: git.ucc.asn.au