diff options
Diffstat (limited to 'utils/hwstub/stmp/hwemul.lds')
-rw-r--r-- | utils/hwstub/stmp/hwemul.lds | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/utils/hwstub/stmp/hwemul.lds b/utils/hwstub/stmp/hwemul.lds new file mode 100644 index 0000000000..7e3ac747a2 --- /dev/null +++ b/utils/hwstub/stmp/hwemul.lds | |||
@@ -0,0 +1,70 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2012 by Amaury Pouly | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #include "config.h" | ||
22 | |||
23 | ENTRY(start) | ||
24 | OUTPUT_FORMAT(elf32-littlearm) | ||
25 | OUTPUT_ARCH(arm) | ||
26 | STARTUP(crt0.o) | ||
27 | |||
28 | #define IRAM_END_ADDR (IRAM_ORIG + IRAM_SIZE) | ||
29 | |||
30 | MEMORY | ||
31 | { | ||
32 | OCRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAM_SIZE | ||
33 | } | ||
34 | |||
35 | SECTIONS | ||
36 | { | ||
37 | .octext : | ||
38 | { | ||
39 | oc_codestart = .; | ||
40 | *(.text*) | ||
41 | *(.data*) | ||
42 | *(.rodata*) | ||
43 | } > OCRAM | ||
44 | |||
45 | .bss (NOLOAD) : | ||
46 | { | ||
47 | bss_start = .; | ||
48 | *(.bss) | ||
49 | bss_end = .; | ||
50 | } > OCRAM | ||
51 | |||
52 | .stack (NOLOAD) : | ||
53 | { | ||
54 | oc_codeend = .; | ||
55 | oc_stackstart = .; | ||
56 | . += STACK_SIZE; | ||
57 | oc_stackend = .; | ||
58 | oc_bufferstart = .; | ||
59 | } > OCRAM | ||
60 | |||
61 | .ocend IRAM_END_ADDR (NOLOAD) : | ||
62 | { | ||
63 | oc_bufferend = .; | ||
64 | } > OCRAM | ||
65 | |||
66 | /DISCARD/ : | ||
67 | { | ||
68 | *(.eh_frame) | ||
69 | } | ||
70 | } | ||