forked from FedorLap2006/DepthOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlink.ld
More file actions
39 lines (31 loc) · 717 Bytes
/
link.ld
File metadata and controls
39 lines (31 loc) · 717 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
ENTRY(_loader)
/*OUTPUT_FORMAT(pei-i386)
OUTPUT_ARCH(i386:i386)*/
SECTIONS {
/* The multiboot data and code will exist in low memory
starting at 0x100000 */
. = 1M;
/* The kernel will live at 3GB + 1MB in the virtual
address space, which will be mapped to 1MB in the
physical address space. */
.text ALIGN(4096) : {
*(.boot)
*(.text*)
}
.data ALIGN (4096) : {
*(.data)
*(.rdata*)
*(.rodata*)
}
.bss ALIGN (4096) : {
_sbss = .;
*(COMMON)
*(.bss)
_ebss = .;
}
end = .; _end = .; __end = .;
/DISCARD/ : {
*(.eh_frame);
*(.comment*);
}
}