Add KEEP() to version information section

Prevents it from being garbage collected
This commit is contained in:
marcansoft 2010-02-26 23:29:22 +00:00
parent 7f7e715756
commit 9af4835863
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ SECTIONS
.rodata : { .rodata : {
*(.rodata) *(.rodata)
*(.rodata.*) *(.rodata.*)
*(.version_information) KEEP(*(.version_information))
} >osimage :text } >osimage :text
. = ALIGN(4); . = ALIGN(4);

View file

@ -25,7 +25,7 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_version_information_start = .; _version_information_start = .;
*(.version_information); KEEP(*(.version_information));
. = LENGTH(bootphase1) - 0x4; . = LENGTH(bootphase1) - 0x4;
LONG(_version_information_start); LONG(_version_information_start);