-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlark.lds
executable file
·51 lines (45 loc) · 1.03 KB
/
lark.lds
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
/* the LARK linker script, by Jonathan Reeves. Taken primarily from
* the default ld linker script and edited appropriately for LARK.
* For information on which sections should be included, use objdump
* on relocatable object files
*/
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
OUTPUT_ARCH(i386)
ENTRY(kernel_head)
SECTIONS
{
. = 0x00100000;
_text = .;
.text :
{
*(.text)
} =0x90909090
_etext = .;
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
. = ALIGN(4096);
.data :
{
*(.data)
}
_edata = .;
. = ALIGN(4096);
__bss_start = .;
.bss :
{
*(.bss)
*(COMMON)
}
. = ALIGN(4);
__bss_end = .;
_end = .;
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/DISCARD/ : { *(.note.GNU-stack) }
}