X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9b87d273b5f529e4e5d5433da60209f0566c8a3a..e61530408c4b3605390748fc544b5afcfda996a3:/armsrc/ldscript diff --git a/armsrc/ldscript b/armsrc/ldscript index a61938ed..ce7a330e 100644 --- a/armsrc/ldscript +++ b/armsrc/ldscript @@ -11,8 +11,7 @@ INCLUDE ../common/ldscript.common PHDRS { - fpgaimage PT_LOAD FLAGS(4); - text PT_LOAD; + text PT_LOAD FLAGS(5); data PT_LOAD; bss PT_LOAD; } @@ -20,10 +19,6 @@ PHDRS ENTRY(Vector) SECTIONS { - .fpgaimage : { - *(fpga_bit.data) - } >fpgaimage :fpgaimage - .start : { *(.startos) } >osimage :text @@ -39,7 +34,9 @@ SECTIONS .rodata : { *(.rodata) *(.rodata.*) - *(.version_information) + *(fpga_lf_bit.data) + *(fpga_hf_bit.data) + KEEP(*(.version_information)) } >osimage :text . = ALIGN(4); @@ -47,12 +44,14 @@ SECTIONS .data : { *(.data) *(.data.*) + *(.ramfunc) . = ALIGN(4); } >ram AT>osimage :data __data_src_start__ = LOADADDR(.data); __data_start__ = ADDR(.data); __data_end__ = __data_start__ + SIZEOF(.data); + __os_size__ = SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.rodata); .bss : { __bss_start__ = .;