Mercurial > lcfOS
annotate cos/kernel/kernel.ld @ 41:35cc54e078dd
Added memory functions
author | windel |
---|---|
date | Fri, 03 Feb 2012 17:56:41 +0100 |
parents | 91f91ff07ea8 |
children |
rev | line source |
---|---|
20 | 1 OUTPUT_FORMAT("binary") |
9 | 2 |
3 SECTIONS { | |
20 | 4 .text 0x100000: |
5 { | |
9 | 6 *(.text) |
20 | 7 } |
9 | 8 |
20 | 9 .rodata ALIGN (4096) : |
10 { | |
9 | 11 *(.rodata) |
12 } | |
13 | |
20 | 14 .data ALIGN (4096) : |
15 { | |
9 | 16 *(.data) |
17 } | |
18 | |
35
bcb3b68c8147
Added bss end address and load end address to multiboot header
windel
parents:
29
diff
changeset
|
19 load_end_address = .; |
9 | 20 .bss : { |
21 *(.bss) | |
22 } | |
23 | |
35
bcb3b68c8147
Added bss end address and load end address to multiboot header
windel
parents:
29
diff
changeset
|
24 bss_end_address = .; |
29 | 25 kernel_end = .; |
9 | 26 } |
27 |