blob: 0cbb7833a3315d9edcee4caf7753d8d57f523a79 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
/*
* model.lds.S - simple linker script for stand-alone Linux booting
*
* Copyright (C) 2011 ARM Limited. All rights reserved.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE.txt file.
*/
OUTPUT_FORMAT("elf32-littlearm")
OUTPUT_ARCH(arm)
TARGET(binary)
#include "memory.h"
_ram_nsec_base = RAM_NSEC_BASE;
SECTIONS
{
. = FLASH_SEC_BASE;
.boot : { tzboot.o }
_eboot = .;
_flash_secvecs_start = .;
. = RAM_SEC_BASE;
_ram_sec_base = .;
/* We separate out the secure vector table and level 1 handlers, so we
* can map it to hivecs (0xffff0000).
*/
_ram_secvecs_start = .;
.vectors : AT ( _flash_secvecs_start ) { *(.vectors); }
_ram_secvecs_end = .;
_secvecs_size = _ram_secvecs_end - _ram_secvecs_start;
/* Page align the text section as we map it differently than the above
* vector text.
*/
. = ALIGN(0x1000);
_flash_sectext_start = _flash_secvecs_start + _secvecs_size;
_ram_sectext_start = .;
.text : AT ( _flash_sectext_start ) { *(.text); }
_ram_sectext_end = .;
_sectext_size = _ram_sectext_end - _ram_sectext_start;
_flash_secdata_start = _flash_sectext_start + _sectext_size;
. = ALIGN(1M);
_ram_secdata_start = .;
.rodata : AT ( _flash_secdata_start ) { *(.rodata); }
.data : { *(.data); }
.bss : { *(.bss); }
_ram_secdata_end = .;
_secdata_size = _ram_secdata_end - _ram_secdata_start;
. = ALIGN(STACK_SIZE);
_secstack_start = .;
sec_usr_stacktop = . + STACK_SIZE;
sec_und_stacktop = sec_usr_stacktop + STACK_SIZE;
sec_abt_stacktop = sec_und_stacktop + STACK_SIZE;
sec_svc_stacktop = sec_und_stacktop + STACK_SIZE;
boot_stacktop = sec_svc_stacktop;
mon_stacktop = sec_svc_stacktop + STACK_SIZE;
_secstack_size = mon_stacktop - _secstack_start;
. = ALIGN(1M);
secure_memory_heap = .;
. = ALIGN(16M);
_sec_l1_page_table = .;
. = TZTEST_COMMON_HEAP_BASE;
_common_memory_heap_base = .;
. = TZTEST_SHARED_HEAP_BASE;
_shared_memory_heap_base = .;
. += 4;
_tztest_test_count = .;
. += 4;
_tztest_fail_count = .;
. += 4;
_tztest_exception = .;
. += 4;
_tztest_exception_status = .;
. += 4;
_tztest_exception_addr = .;
. += 4;
}
|