-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinker.ld
More file actions
47 lines (38 loc) · 822 Bytes
/
linker.ld
File metadata and controls
47 lines (38 loc) · 822 Bytes
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
/*
*
* /--------------------------------------------O
* | |
* | COPYRIGHT : (c) 2025 per Linuxperoxo. |
* | AUTHOR : Linuxperoxo |
* | FILE : linker.ld |
* | |
* O--------------------------------------------/
*
*/
OUTPUT(AtlasB.osb)
OUTPUT_FORMAT(binary)
origin_text = 0x7C00;
origin_magic = 0x7DFE;
SECTIONS {
. = origin_text;
.atlas.text : {
*(.atlas.text.atlas)
*(.atlas.text.*)
}
.atlas.data : {
*(.atlas.data*)
}
. = origin_magic;
.atlas.magic : {
*(.atlas.mbr.magic)
}
.atlas.struct : {
. = ALIGN(4);
*(.atlas.struct.atlas)
}
/DISCARD/ : {
*(.note*)
*(.comment*)
*(.gnu*)
}
}