forked from atasro2/mp2k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathld_script.txt
84 lines (75 loc) · 1.93 KB
/
ld_script.txt
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
SECTIONS {
. = 0x2000000;
ewram (NOLOAD) :
ALIGN(4)
{
INCLUDE "sym_ewram.txt"
}
. = 0x3000000;
iwram (NOLOAD) :
ALIGN(4)
{
INCLUDE "sym_iwram.txt"
}
. = 0x8000000;
.text :
ALIGN(4)
{
asm/crt0.o(.text);
asm/m4a_1.o(.text);
asm/m4a.o(.text);
asm/m4a_mixer.o(.text);
asm/main.o(.text);
asm/libagbsyscall.o(.text);
*libgcc.a:*_call_via_rX*.o(.text*);
*libgcc.a:*_divsi3*.o(.text*);
*libgcc.a:*_dvmd_tls*.o(.text*);
*libgcc.a:*_modsi3*.o(.text*);
*libgcc.a:*_udivsi3*.o(.text*);
*libgcc.a:*_umodsi3*.o(.text*);
} =0
.rodata :
ALIGN(4)
{
asm/crt0.o(.rodata);
data/data.o(.data);
data/SndMonDat.o(.rodata);
data/SoundDat.o(.rodata);
} =0
song_data :
ALIGN(4)
{
sound/songs/*.o(.rodata);
sound/songs/midi/*.o(.rodata);
} =0
.rodata.end :
ALIGN(4)
{
data/SndMonDat.o(.rodata.end);
} =0
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* Discard everything not specifically mentioned above. */
/DISCARD/ :
{
*(*);
}
}