]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - bootrom/ldscript-flash
Bootloader cleanup (UNTESTED!)
[proxmark3-svn] / bootrom / ldscript-flash
... / ...
CommitLineData
1/*
2-----------------------------------------------------------------------------
3 This code is licensed to you under the terms of the GNU GPL, version 2 or,
4 at your option, any later version. See the LICENSE.txt file for the text of
5 the license.
6-----------------------------------------------------------------------------
7 Bootrom linker script
8-----------------------------------------------------------------------------
9*/
10
11INCLUDE ../common/ldscript.common
12
13ENTRY(flashstart)
14SECTIONS
15{
16 .bootphase1 : {
17 *(.startup)
18
19 . = ALIGN(4);
20 _version_information_start = .;
21 *(.version_information);
22
23 . = LENGTH(bootphase1) - 0x4;
24 LONG(_version_information_start);
25 } >bootphase1
26
27 .bootphase2 : {
28 *(.startphase2)
29 *(.text)
30 *(.text.*)
31 *(.eh_frame)
32 *(.glue_7)
33 *(.glue_7t)
34 *(.rodata)
35 *(.rodata.*)
36 *(.data)
37 *(.data.*)
38 . = ALIGN(4);
39 } >ram AT>bootphase2
40
41 __bootphase2_src_start__ = LOADADDR(.bootphase2);
42 __bootphase2_start__ = ADDR(.bootphase2);
43 __bootphase2_end__ = __bootphase2_start__ + SIZEOF(.bootphase2);
44
45 .bss : {
46 __bss_start__ = .;
47 *(.bss)
48 *(.bss.*)
49 . = ALIGN(4);
50 __bss_end__ = .;
51 } >ram
52
53 .commonarea (NOLOAD) : {
54 *(.commonarea)
55 } >commonarea
56}
Impressum, Datenschutz