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

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