-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdtekv-script.lds
More file actions
39 lines (33 loc) · 789 Bytes
/
dtekv-script.lds
File metadata and controls
39 lines (33 loc) · 789 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
OUTPUT_FORMAT("elf32-littleriscv", "elf32-littleriscv",
"elf32-littleriscv")
OUTPUT_ARCH(riscv)
ENTRY(_start)
MEMORY
{
RAM (xrw) : ORIGIN = 0x00000000, LENGTH = 32M
}
SECTIONS
{
__stack_size = DEFINED(__stack_size) ? __stack_size : 0x100000;
PROVIDE(__stack_size = __stack_size);
__heap_size = DEFINED(__heap_size) ? __heap_size : 0x800;
. = 0x0;
.text : {*(.text*); }
.data : { *(.data*)
PROVIDE( __global_pointer = . + 0x800 );
*(.sdata*)}
.bss : {
PROVIDE(_bss_start = .);
*(.bss)
*(.sbss)
PROVIDE(_bss_end = .);
}
.rodata : { *(.rodata) }
.comment : { *(.comment) }
.stack : {
PROVIDE(_stack_begin = .);
. = ALIGN(4);
. += __stack_size;
PROVIDE(_stack_end = .);
}
}