-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsh-stub.lds.S
executable file
·58 lines (58 loc) · 1.14 KB
/
sh-stub.lds.S
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
#include "config.h"
#ifdef CONFIG_LITTLE_ENDIAN
OUTPUT_FORMAT("elf32-shl", "elf32-shl", "elf32-shl")
#else
OUTPUT_FORMAT("elf32-sh", "elf32-sh", "elf32-sh")
#endif
OUTPUT_ARCH(sh)
#if defined(CONFIG_CQSH3)
#include "cqsh3.mem"
#elif defined(CONFIG_CQSH4)
#include "cqsh4.mem"
#elif defined(CONFIG_YAEGASHI)
#include "yaegashi.mem"
#elif defined(CONFIG_SESH3)
#include "sesh3.mem"
#elif defined(CONFIG_SESH4)
#include "sesh4.mem"
#elif defined(CONFIG_CARD_E09A)
#include "card-e09a.mem"
#elif defined(CONFIG_RSH3)
#include "rsh3.mem"
#elif defined(CONFIG_DVESH3)
#include "dvesh3.mem"
#elif defined(CONFIG_MS104SH4)
#include "ms104sh4.mem"
#endif
SECTIONS
{
.text :
{
__text = . ;
entry.o(.text)
*(.text)
*(.rodata)
} > ROM
. = ALIGN(4);
__idata_start = . ;
.data : AT(__idata_start)
{
__data_start = . ;
*(.data)
} > RAM
. = ALIGN(4);
__idata_end = __idata_start + SIZEOF(.data);
_edata = . ;
__bss_start = .; /* BSS */
.bss :
{
*(.bss)
*(COMMON)
} > RAM
. = ALIGN(4);
__bss_end = .;
.stack :
{
*(.stack)
} > STACK
}