X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/e73e717239300d6b47d5f5d81256d8feb493299f..6c5ad038603d132d10802eecbef5c2f2547d94ae:/armsrc/ldscript diff --git a/armsrc/ldscript b/armsrc/ldscript index 3219a041..cc5ce4e0 100644 --- a/armsrc/ldscript +++ b/armsrc/ldscript @@ -3,22 +3,39 @@ INCLUDE ../common/ldscript.common ENTRY(Vector) SECTIONS { - fpgaimage : { + .fpgaimage : { *(fpga_bit.data) } >fpgaimage .start : { *(.startos) } >osimage .text : { *(.text) *(.text.*) + *(.eh_frame) *(.glue_7) *(.glue_7t) - } >osimage - .rodata : { *(.rodata) *(.rodata*) + *(.version_information) } >osimage - .data : { *(.data) } >ram - __bss_start__ = .; - .bss : { *(.bss) } >ram + __end_of_text__ = .; + + .data : { + __data_start__ = .; + __data_src_start__ = __end_of_text__; + *(.data) + *(.data.*) + __data_end__ = .; + } >ram AT>osimage + + .bss : { + __bss_start__ = .; + *(.bss) + *(.bss.*) + } >ram + . = ALIGN(32 / 8); __bss_end__ = .; + + .commonarea (NOLOAD) : { + *(.commonarea) + } >commonarea }