annotate cos/kernel/kernel.ld @ 222:c3f1ce8b638f

Fixup of parser
author Windel Bouwman
date Tue, 09 Jul 2013 17:36:31 +0200
parents 91f91ff07ea8
children
rev   line source
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 9
diff changeset
1 OUTPUT_FORMAT("binary")
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
2
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
3 SECTIONS {
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 9
diff changeset
4 .text 0x100000:
b1fed2171e1a Now working with 2 MB pages
windel
parents: 9
diff changeset
5 {
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
6 *(.text)
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 9
diff changeset
7 }
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
8
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 9
diff changeset
9 .rodata ALIGN (4096) :
b1fed2171e1a Now working with 2 MB pages
windel
parents: 9
diff changeset
10 {
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
11 *(.rodata)
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
12 }
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
13
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 9
diff changeset
14 .data ALIGN (4096) :
b1fed2171e1a Now working with 2 MB pages
windel
parents: 9
diff changeset
15 {
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
16 *(.data)
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
17 }
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
18
35
bcb3b68c8147 Added bss end address and load end address to multiboot header
windel
parents: 29
diff changeset
19 load_end_address = .;
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
20 .bss : {
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
21 *(.bss)
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
22 }
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
23
35
bcb3b68c8147 Added bss end address and load end address to multiboot header
windel
parents: 29
diff changeset
24 bss_end_address = .;
29
7e3bdcb391dc Added get_page function to mm
windel
parents: 28
diff changeset
25 kernel_end = .;
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
26 }
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
27