summaryrefslogtreecommitdiff
path: root/ports/cortex_m4/ghs/example_build/sample_threadx.ld
blob: ba1a8f26b835f407e5348e75d47c6168f566b2bc (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
# The following explains what the default Green Hills sections are for:
#
# picbase - base of the text sections, relocatable in -pic mode
# text - text section
# syscall - syscall section, for host I/O under Multi
# fixaddr/fixtype - for PIC/PID fixups
# rodata - read only data
# romdata - the ROM image of .data
# romsdata - the ROM image of .sdata
# secinfo - section information section, used by the start-up code
# pidbase - base of the data sections, relocatable in -pid mode
# sdabase - base of the small data area section pointer
# sbss - small BSS (zeroed data) section
# sdata - small data section
# data - non-zeroed writeable data section
# bss - zeroed data section
# heap - the heap, grows upward
# stack - the stack, grows downward

-sec
{
    .reset      0x000000 :
    .picbase	0x1000 :
    .text	:
	.comment :
    .intercall :
    .interfunc :
    .syscall	:
    .fixaddr	:
    .fixtype	:
    .rodata	:
    .romdata	ROM(.data) :
    .romsdata	ROM(.sdata) :
    .secinfo	:
    .pidbase	align(16) :
    .sdabase	:
    .sbss	:
    .sdata      :
    .data	:
    .bss	:
    .heap align(16) pad(0x10000) :
    .stack align(16) pad(0x1000) :
    .free_mem align(16) pad(0x10000) :
    .sys_regs 0xE0000000 pad(0xe000) :
}