forked from linux4sam/at91bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelf32-littlearm.lds
52 lines (46 loc) · 960 Bytes
/
elf32-littlearm.lds
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
/*
* Copyright (C) 2006 Microchip Technology Inc. and its subsidiaries
*
* SPDX-License-Identifier: MIT
*/
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(reset)
SECTIONS
{
. = ALIGN(4);
.text : {
_stext = .;
*(.text)
*(.rodata) /* read-only data (constants) */
*(.rodata*)
. = ALIGN(4);
*(.glue_7)
. = ALIGN(4);
*(.eh_frame)
. = ALIGN(4);
_etext = . ;
}
/* collect all initialized .data sections */
/* .data : AT ( ADDR (.text) + SIZEOF (.text) SIZEOF (.ARM.*) { */
. = ALIGN(4);
.dummy : {
_edummy = .;
}
.data : AT (LOADADDR(.dummy)) {
_sdata = .;
*(.vectors)
*(.data)
_edata = .;
}
/* collect all uninitialized .bss sections */
.bss (NOLOAD) : {
. = ALIGN(4);
_sbss = .;
*(.bss)
_ebss = .;
}
}
_romsize = _edata - _stext;
_sramsize = _ebss - _stext;
end = .; /* define a global symbol marking the end of application */