-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.ld
41 lines (34 loc) · 1.24 KB
/
image.ld
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
/* Copyright (C) 2017 Daniel Page <csdsp@bristol.ac.uk>
*
* Use of this source code is restricted per the CC BY-NC-ND license, a copy of
* which can be found via http://creativecommons.org (and should be included as
* LICENSE.txt within the associated archive or repository).
*/
SECTIONS {
/* assign load address (per QEMU) */
. = 0x70010000;
/* place text segment(s) */
.text : { kernel/lolevel.o(.text) *(.text .rodata) }
/* place data segment(s) */
.data : { *(.data ) }
/* place bss segment(s) */
.bss : { *(.bss ) }
/* align address (per AAPCS) */
.heap : {end = .;_heap_start = .;. = . + 0x00001000;_heap_end = .;}
. = ALIGN( 8 );
/* allocate stack for irq mode */
. = . + 0x00001000;
tos_irq = .;
/* allocate stack for svc mode */
. = . + 0x00001000;
tos_svc = .;
/* allocate stack for P1 */
. = . + 0x00001000;
tos_P1 = .;
/* allocate stack for P2 */
. = . + 0x00001000;
tos_P2 = .;
/* allocate stack for P2 */
. = . + 0x00010000;
tos_console = .;
}