]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Add KEEP() to version information section
authormarcansoft <marcansoft@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 26 Feb 2010 23:29:22 +0000 (23:29 +0000)
committermarcansoft <marcansoft@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 26 Feb 2010 23:29:22 +0000 (23:29 +0000)
Prevents it from being garbage collected

armsrc/ldscript
bootrom/ldscript-flash

index a61938edd90ee9ddea530c112c4bdc7e68b10c4c..70be53b5436053d667ce4d7b13d249b4f4c5fac9 100644 (file)
@@ -39,7 +39,7 @@ SECTIONS
        .rodata : {
                *(.rodata)
                *(.rodata.*)
        .rodata : {
                *(.rodata)
                *(.rodata.*)
-               *(.version_information)
+               KEEP(*(.version_information))
        } >osimage :text
 
        . = ALIGN(4);
        } >osimage :text
 
        . = ALIGN(4);
index 9a31867d1d3243ef9bd2e489a99308956243b467..f1bab1494e856cc81c28299efd101350452b0f2b 100644 (file)
@@ -25,7 +25,7 @@ SECTIONS
 
                . = ALIGN(4);
                _version_information_start = .;
 
                . = ALIGN(4);
                _version_information_start = .;
-               *(.version_information);
+               KEEP(*(.version_information));
 
                . = LENGTH(bootphase1) - 0x4;
                LONG(_version_information_start);
 
                . = LENGTH(bootphase1) - 0x4;
                LONG(_version_information_start);
Impressum, Datenschutz