forked from Jonimoose/libfxcg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprizm.x
executable file
·55 lines (48 loc) · 1.42 KB
/
prizm.x
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
OUTPUT_FORMAT(binary)
OUTPUT_ARCH(sh3)
/* Entry point. Not really important here, since doing binary output */
ENTRY(initialize)
MEMORY
{
/* Loads code at 300000, skips g3a header */
rom (rx) : o = 0x00300000, l = 1024k
ram (rwx) : o = 0x08100004, l = 64k /* pretty safe guess */
ilram (rwx) : o = 0xE5200000, l = 4k /* According to http://www.cemetech.net/forum/viewtopic.php?t=9334 */
}
SECTIONS
{
/* Code, in ROM */
.text : {
*(.pretext) /* init stuff */
*(.text)
*(.text.*)
} > rom
.ilram : {
_ilramld = LOADADDR(.data) ;
_silram = . ;
*(.ilram)
*(.ilram.*)
_eilram = . ;
} > ilram AT> rom
/* Read-only data, in ROM */
.rodata : {
*(.rodata)
*(.rodata.*)
} > rom
/* RW initialized data, VMA in RAM but LMA in ROM */
.data : ALIGN(4) {
_datald = LOADADDR(.data) ;
_sdata = . ;
*(.data)
*(.data.*);
_edata = . ;
} >ram AT>rom
/* Uninitialized data (fill with 0), in RAM */
.bss : ALIGN(4) {
_bbss = . ;
*(.bss)
*(.bss*)
*(COMMON)
_ebss = . ;
} >ram
}