-
Notifications
You must be signed in to change notification settings - Fork 0
/
ldscript_ipl2.lcf
44 lines (37 loc) · 1.29 KB
/
ldscript_ipl2.lcf
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
MEMORY {
// The BSS is moved to there as since version 2.0
// they were running out of free space in the BS2 area
// (0x81330000 - 0x8137D0000) which is where the Wii Menu is stored.
da_bss: origin = 0x81080000
main: origin = 0x81330000
}
SECTIONS {
GROUP: {
.bss ALIGN(0x20):{}
} > da_bss
GROUP: {
.init ALIGN(0x20): {}
extab ALIGN(0x20): {}
extabindex ALIGN(0x20): {}
.text ALIGN(0x20): {}
.ctors ALIGN(0x20): {}
.dtors ALIGN(0x20): {}
.rodata ALIGN(0x20): {}
.data ALIGN(0x20): {}
.sdata2 ALIGN(0x20): {}
.sbss2 ALIGN(0x20): {}
.sdata ALIGN(0x20): {}
.sbss ALIGN(0x20): {}
.stack ALIGN(0x100): {}
} > main
_stack_end = $LAST_SECTION_SYMBOL + SIZEOF($LAST_SECTION_NAME);
_stack_addr = (_stack_end + $STACKSIZE + 0x7) & ~0x7;
_db_stack_addr = (_stack_addr + 0x2000);
_db_stack_end = _stack_addr;
__ArenaLo = (_db_stack_addr + 0x1F) & ~0x1F;
__ArenaHi = $ARENAHI;
}
// Force active symbols that are likely going to get stripped out.
// (automatically generated by DTK)
//FORCEACTIVE {
//}