diff options
Diffstat (limited to 'utils/hwstub/stub/jz4760b/hwstub.lds')
-rw-r--r-- | utils/hwstub/stub/jz4760b/hwstub.lds | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/utils/hwstub/stub/jz4760b/hwstub.lds b/utils/hwstub/stub/jz4760b/hwstub.lds new file mode 100644 index 0000000000..33aad51ebd --- /dev/null +++ b/utils/hwstub/stub/jz4760b/hwstub.lds | |||
@@ -0,0 +1,55 @@ | |||
1 | #include "config.h" | ||
2 | ENTRY(main) | ||
3 | OUTPUT_ARCH(mips) | ||
4 | STARTUP(jz4760b/crt0.o) | ||
5 | |||
6 | MEMORY | ||
7 | { | ||
8 | /* see crt0.S from an an explanation of why TCSM0 is the best choice */ | ||
9 | TCSM0 : ORIGIN = TCSM0_ORIG, LENGTH = TCSM0_SIZE | ||
10 | } | ||
11 | |||
12 | SECTIONS | ||
13 | { | ||
14 | .itext : | ||
15 | { | ||
16 | relocstart = .; | ||
17 | oc_codestart = .; | ||
18 | *(.init.text*) | ||
19 | *(.text*) | ||
20 | *(.icode*) | ||
21 | *(.data*) | ||
22 | *(.rodata*) | ||
23 | . = ALIGN(4); | ||
24 | relocend = .; | ||
25 | } > TCSM0 | ||
26 | |||
27 | .bss (NOLOAD) : | ||
28 | { | ||
29 | bssbegin = .; | ||
30 | *(.bss) | ||
31 | . = ALIGN(4); | ||
32 | bssend = .; | ||
33 | } > TCSM0 | ||
34 | |||
35 | .stack (NOLOAD) : | ||
36 | { | ||
37 | oc_codeend = .; | ||
38 | oc_stackstart = .; | ||
39 | . += STACK_SIZE; | ||
40 | oc_stackend = .; | ||
41 | oc_bufferstart = .; | ||
42 | } > TCSM0 | ||
43 | |||
44 | .ocend TCSM0_ORIG + TCSM0_SIZE (NOLOAD) : | ||
45 | { | ||
46 | oc_bufferend = .; | ||
47 | } > TCSM0 | ||
48 | |||
49 | /DISCARD/ : | ||
50 | { | ||
51 | *(.note.*) | ||
52 | *(.reginfo*) | ||
53 | *(.MIPS*) | ||
54 | } | ||
55 | } | ||