From 9af48358635096a05e23b260c23d30f7e7ce3513 Mon Sep 17 00:00:00 2001 From: marcansoft Date: Fri, 26 Feb 2010 23:29:22 +0000 Subject: [PATCH 1/1] Add KEEP() to version information section Prevents it from being garbage collected --- armsrc/ldscript | 2 +- bootrom/ldscript-flash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/ldscript b/armsrc/ldscript index a61938ed..70be53b5 100644 --- a/armsrc/ldscript +++ b/armsrc/ldscript @@ -39,7 +39,7 @@ SECTIONS .rodata : { *(.rodata) *(.rodata.*) - *(.version_information) + KEEP(*(.version_information)) } >osimage :text . = ALIGN(4); diff --git a/bootrom/ldscript-flash b/bootrom/ldscript-flash index 9a31867d..f1bab149 100644 --- a/bootrom/ldscript-flash +++ b/bootrom/ldscript-flash @@ -25,7 +25,7 @@ SECTIONS . = ALIGN(4); _version_information_start = .; - *(.version_information); + KEEP(*(.version_information)); . = LENGTH(bootphase1) - 0x4; LONG(_version_information_start); -- 2.39.5