0e46cb13fb561215859b86d6d2485d87097184ba
[fw/openocd] / contrib / loaders / debug / xscale / debug_handler.ld
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /* identify the Entry Point  */
4 ENTRY(reset_handler)
5
6 /* specify the mini-ICache memory areas  */
7 MEMORY
8 {
9         mini_icache_0 (x)                               : ORIGIN = 0x0, LENGTH = 1024   /* first part of mini icache (sets 0-31) */
10         mini_icache_1 (x)                               : ORIGIN = 0x400, LENGTH = 1024 /* second part of mini icache (sets 0-31) */
11 }
12
13 /* now define the output sections  */
14 SECTIONS
15 {
16         .part1 :
17         {
18                 LONG(0)
19                 LONG(0)
20                 LONG(0)
21                 LONG(0)
22                 LONG(0)
23                 LONG(0)
24                 LONG(0)
25                 LONG(0)
26                 *(.part1)
27         } >mini_icache_0
28
29         .part2 :
30         {
31                 LONG(0)
32                 LONG(0)
33                 LONG(0)
34                 LONG(0)
35                 LONG(0)
36                 LONG(0)
37                 LONG(0)
38                 LONG(0)
39                 *(.part2)
40                 FILL(0x0)
41         } >mini_icache_1
42
43         /DISCARD/ :
44         {
45                 *(.text)
46                 *(.glue_7)
47                 *(.glue_7t)
48                 *(.data)
49                 *(.bss)
50         }
51 }