-
Notifications
You must be signed in to change notification settings - Fork 0
/
sh4-7750dc-cdrom.cmd
86 lines (75 loc) · 1.53 KB
/
sh4-7750dc-cdrom.cmd
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
85
86
/*
Copyright (c) 1999 by William A. Gatliff
All rights reserved. [email protected]
See the file COPYING for details.
This file is provided "as-is", and without any express
or implied warranties, including, without limitation,
the implied warranties of merchantability and fitness
for a particular purpose.
The author welcomes feedback regarding this file.
SH-4 support added by Benoit Miller ([email protected]).
Support for Sega Dreamcast(tm) added by Benoit Miller.
"SEGA" and "DREAMCAST" are registered trademarks of Sega
Enterprises, Ltd.
*/
/* Based on work originally done by the SH-Linux team */
OUTPUT_FORMAT("elf32-shl", "elf32-shl", "elf32-shl")
OUTPUT_ARCH(sh)
MEMORY
{
RAM (rw): ORIGIN = 0x8c00b800, LENGTH = 0x0800
VECTABLE(rw): ORIGIN = 0x8c00c000, LENGTH = 0x0700
STACK (rw): ORIGIN = 0x8c00d800, LENGTH = 0x0640
ROM (rx): ORIGIN = 0x8c00e000, LENGTH = 0x1e00
EXCEPT(rw): ORIGIN = 0x8c00fe00, LENGTH = 0x0108
}
SECTIONS
{
.text :
{
/*entry.o(.text)*/
*(.text)
*(.rodata)
} > ROM
__text_end = .;
__data_start = .;
.data :
{
*(.data)
} > RAM
. = ALIGN(4);
__data_end = .;
__bss_start = .; /* BSS */
.bss :
{
*(.bss)
*(COMMON)
} > RAM
. = ALIGN(4);
__bss_end = .;
.stack :
{
*(.stack)
} > STACK
__stack_end = .;
.vect :
{
*(.vect)
} > VECTABLE
.except :
{
*(.except)
} > EXCEPT
.stab :
{
*(.stab)
}
.comment :
{
*(.comment)
}
.stabstr :
{
*(.stabstr)
}
}