]> cvs.zerfleddert.de Git - proxmark3-svn/blame - armsrc/ldscript
Bootloader cleanup (UNTESTED!)
[proxmark3-svn] / armsrc / ldscript
CommitLineData
e949e6a6 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 Linker script for the ARM binary
8-----------------------------------------------------------------------------
9*/
15c4dc5a 10INCLUDE ../common/ldscript.common
11
98bf65a6 12PHDRS
13{
14 fpgaimage PT_LOAD FLAGS(4);
15 text PT_LOAD;
16 data PT_LOAD;
17 bss PT_LOAD;
18}
19
15c4dc5a 20ENTRY(Vector)
21SECTIONS
22{
23 .fpgaimage : {
24 *(fpga_bit.data)
98bf65a6 25 } >fpgaimage :fpgaimage
26
27 .start : {
28 *(.startos)
29 } >osimage :text
30
31 .text : {
15c4dc5a 32 *(.text)
33 *(.text.*)
34 *(.eh_frame)
35 *(.glue_7)
36 *(.glue_7t)
98bf65a6 37 } >osimage :text
38
39 .rodata : {
40 *(.rodata)
cc7580be 41 *(.rodata.*)
15c4dc5a 42 *(.version_information)
98bf65a6 43 } >osimage :text
44
45 . = ALIGN(4);
46
15c4dc5a 47 .data : {
15c4dc5a 48 *(.data)
49 *(.data.*)
98bf65a6 50 . = ALIGN(4);
51 } >ram AT>osimage :data
52
53 __data_src_start__ = LOADADDR(.data);
54 __data_start__ = ADDR(.data);
55 __data_end__ = __data_start__ + SIZEOF(.data);
15c4dc5a 56
57 .bss : {
58 __bss_start__ = .;
59 *(.bss)
60 *(.bss.*)
98bf65a6 61 . = ALIGN(4);
62 __bss_end__ = .;
63 } >ram :bss
15c4dc5a 64
98bf65a6 65 .commonarea (NOLOAD) : {
66 *(.commonarea)
67 } >commonarea :NONE
15c4dc5a 68}
Impressum, Datenschutz