summaryrefslogtreecommitdiff
path: root/tests/INTEGRITY.ld
blob: 7b77515f0968b60be85940eefd7fae6321427344 (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
# default link map for INTEGRITY
# text (readonly) and data (read/write) areas must be page-aligned

-sec
{
# text/readonly segment
        .picbase	0x10000 	:
	.text				:
        .syscall 			:
	.intercall			:
	.interfunc			:
        .secinfo 			:
        .rodata 			:
	.sdata2 			:
        .fixaddr 			:
        .fixtype 			:
# .textchecksum MUST be the last section of the text/readonly segment
	.textchecksum			:

# data/readwrite segment
	.pidbase	align(0x4000)	:
        .data 				:
	.sdabase 			:
        .sdata 				:
# .datachecksum MUST be the last section of the data portion of the
# data/read/write segment (i.e., it must come before the BSS sections).
	.datachecksum			:
        .sbss 				:
        .bss 				:
	.heap	align(16) pad(0x800000) 	:
}