blob: 440e5133fb0c79fe308a51494acdb6e9cd8ca5a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
ENTRY (_start)
KERNEL_PMA = 0x00100000;
KERNEL_VMA = 0xC0000000;
SECTIONS
{
. = KERNEL_PMA;
.multiboot.data : {
*(.multiboot2.header)
*(.boot32.rodata)
}
.multiboot.text : {
*(.multiboot.text)
}
. += KERNEL_VMA;
.text ALIGN (4K) : AT (ADDR (.text) - KERNEL_VMA)
{
*(.text)
}
.got ALIGN (4K) : AT (ADDR (.got) - KERNEL_VMA)
{
*(.got)
}
.got.plt ALIGN (4K) : AT (ADDR (.got.plt) - KERNEL_VMA)
{
*(.got.plt)
}
.rodata ALIGN(4K) : AT (ADDR (.rodata) - KERNEL_VMA)
{
*(.rodata)
}
.data ALIGN (4K) : AT (ADDR (.data) - KERNEL_VMA)
{
*(.data)
}
.bss ALIGN (4K) : AT (ADDR (.bss) - KERNEL_VMA)
{
*(COMMON)
*(.bss)
*(.bootstrap_stack)
}
/DISCARD/ :
{
*(.debug_abbrev)
*(.debug_aranges)
*(.debug_frame)
*(.debug_gdb_scripts)
*(.debug_info)
*(.debug_line)
*(.debug_line_str)
*(.debug_loc)
*(.debug_pubnames)
*(.debug_pubtypes)
*(.debug_ranges)
*(.debug_str)
*(.comment)
*(.note.*)
}
_kernel_end = .;
}
|