-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.ld
31 lines (30 loc) · 1.06 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
/* Copyright (C) 2017 Daniel Page <[email protected]>
*
* 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) */
. = 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 = .;
}