-
Notifications
You must be signed in to change notification settings - Fork 1
/
linker (copy).ld
executable file
·102 lines (74 loc) · 1.73 KB
/
linker (copy).ld
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
ENTRY (loader)
MEMORY { address_space : ORIGIN = 0x200000, LENGTH = 0x100000 }
/*
MEMORY { address_space_process_1 : ORIGIN = 0x300000, LENGTH = 0x100000 }
MEMORY { address_space_process_2 : ORIGIN = 0x400000, LENGTH = 0x100000 }
MEMORY { address_space_process_3 : ORIGIN = 0x500000, LENGTH = 0x100000 }
*/
SECTIONS{
. = 0x10000;
/* kernel address space */
.text :{
*(EXCLUDE_FILE (*process.o) .text)
}
.rodata : {
*(EXCLUDE_FILE (*process.o) .rodata)
}
.data :{
*(EXCLUDE_FILE (*process.o) .data)
}
.bss :{
*(EXCLUDE_FILE (*process.o) .bss)
}
/*process_0 address space */
.text_0 :{
process_0.o(.text)
}>address_space
.rodata_0 :{
process_0.o(.rodata)
}>address_space
.data_0 :{
process_0.o(.data)
}>address_space
.bss_0 :{
process_0.o(.bss)
}>address_space
/*
.text_1 :{
process_1.o(.text)
}>address_space_process_1
.rodata_1 :{
process_1.o(.rodata)
}>address_space_process_1
.data_1 :{
process_1.o(.data)
}>address_space_process_1
.bss_1 :{
process_1.o(.bss)
}>address_space_process_1
.text_2 :{
process_2.o(.text)
}>address_space_process_2
.rodata_2 :{
process_2.o(.rodata)
}>address_space_process_2
.data_2 :{
process_2.o(.data)
}>address_space_process_2
.bss_2 :{
process_2.o(.bss)
}>address_space_process_2
.text_3 :{
process_3.o(.text)
}>address_space_process_3
.rodata_3 :{
process_3.o(.rodata)
}>address_space_process_3
.data_3 :{
process_3.o(.data)
}>address_space_process_3
.bss_3 :{
process_3.o(.bss)
}>address_space_process_3
*/
}