]> git.zerfleddert.de Git - proxmark3-svn/blame - bootrom/ldscript-flash
fix compiling under MAC OSX
[proxmark3-svn] / bootrom / ldscript-flash
CommitLineData
bd20f8f4 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
15c4dc5a 11INCLUDE ../common/ldscript.common
12
7f7e7157 13PHDRS
14{
15 phase1 PT_LOAD;
16 phase2 PT_LOAD;
17 bss PT_LOAD;
18}
19
15c4dc5a 20ENTRY(flashstart)
21SECTIONS
22{
86d31955 23 .bootphase1 : {
24 *(.startup)
25
26 . = ALIGN(4);
27 _version_information_start = .;
9af48358 28 KEEP(*(.version_information));
86d31955 29
30 . = LENGTH(bootphase1) - 0x4;
31 LONG(_version_information_start);
7f7e7157 32 } >bootphase1 :phase1
86d31955 33
34 .bootphase2 : {
35 *(.startphase2)
36 *(.text)
37 *(.text.*)
38 *(.eh_frame)
39 *(.glue_7)
40 *(.glue_7t)
41 *(.rodata)
42 *(.rodata.*)
43 *(.data)
44 *(.data.*)
45 . = ALIGN(4);
7f7e7157 46 } >ram AT>bootphase2 :phase2
86d31955 47
48 __bootphase2_src_start__ = LOADADDR(.bootphase2);
49 __bootphase2_start__ = ADDR(.bootphase2);
50 __bootphase2_end__ = __bootphase2_start__ + SIZEOF(.bootphase2);
51
52 .bss : {
53 __bss_start__ = .;
54 *(.bss)
55 *(.bss.*)
56 . = ALIGN(4);
57 __bss_end__ = .;
7f7e7157 58 } >ram AT>ram :bss
86d31955 59
60 .commonarea (NOLOAD) : {
61 *(.commonarea)
62 } >commonarea
15c4dc5a 63}
Impressum, Datenschutz