summaryrefslogtreecommitdiff
path: root/utils/hwstub/stub/pp/hwstub.lds
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-04-07 22:23:54 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-04-07 22:26:50 +0200
commitccfa51835e373c74cdda7eaad962a81ba1001fe2 (patch)
treed827d1027626cae478ab25742f78ffa11a90d2bf /utils/hwstub/stub/pp/hwstub.lds
parent399acc038750943c1a0ee7178a18714334871472 (diff)
downloadrockbox-ccfa51835e373c74cdda7eaad962a81ba1001fe2.tar.gz
rockbox-ccfa51835e373c74cdda7eaad962a81ba1001fe2.zip
Add hwstub support for portal player (manufacturer mode)
It is very similar to how e200tool from MrH works but uses the framework of hwstub which is makes it completely trivial since we already have the USB driver written. Change-Id: I61cdc245d3f828c2682bcd6ecfed5a1cc0094139
Diffstat (limited to 'utils/hwstub/stub/pp/hwstub.lds')
-rw-r--r--utils/hwstub/stub/pp/hwstub.lds73
1 files changed, 73 insertions, 0 deletions
diff --git a/utils/hwstub/stub/pp/hwstub.lds b/utils/hwstub/stub/pp/hwstub.lds
new file mode 100644
index 0000000000..baf10252e1
--- /dev/null
+++ b/utils/hwstub/stub/pp/hwstub.lds
@@ -0,0 +1,73 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2014 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
23ENTRY(start)
24OUTPUT_FORMAT(elf32-littlearm)
25OUTPUT_ARCH(arm)
26STARTUP(pp/crt0.o)
27
28#define IRAM_END_ADDR (IRAM_ORIG + IRAM_SIZE)
29
30MEMORY
31{
32 OCRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAM_SIZE
33}
34
35SECTIONS
36{
37 .octext :
38 {
39 _copystart = .;
40 oc_codestart = .;
41 *(.text*)
42 *(.icode*)
43 *(.data*)
44 *(.rodata*)
45 _copyend = .;
46 } > OCRAM
47
48 .bss (NOLOAD) :
49 {
50 bss_start = .;
51 *(.bss)
52 bss_end = .;
53 } > OCRAM
54
55 .stack (NOLOAD) :
56 {
57 oc_codeend = .;
58 oc_stackstart = .;
59 . += STACK_SIZE;
60 oc_stackend = .;
61 oc_bufferstart = .;
62 } > OCRAM
63
64 .ocend IRAM_END_ADDR (NOLOAD) :
65 {
66 oc_bufferend = .;
67 } > OCRAM
68
69 /DISCARD/ :
70 {
71 *(.eh_frame)
72 }
73}