fix revision string for BIOS loader

The original linker script puts sHaikuRevision after __bss_start
which results in the revision string getting overwritten with zeroes
when the boot loader starts.

This change ensures that sHaikuRevision comes before __bss_start.

Change-Id: I271f2571ea274092f91f01019dcf8dcc1ad01bf3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5721
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
David Karoly 2022-10-06 18:35:53 +02:00 committed by Adrien Destugues
parent 05c1a8991e
commit f151690800
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ SECTIONS
. = ALIGN(0x1000);
__data_start = .;
.data : { *(.data .gnu.linkonce.d.*) }
_haiku_revision : { *(_haiku_revision) }
/* uninitialized data (in same segment as writable data) */
__bss_start = .;

View File

@ -20,6 +20,7 @@ SECTIONS
. = ALIGN(0x1000);
__data_start = .;
.data : { *(.data .gnu.linkonce.d.*) }
_haiku_revision : { *(_haiku_revision) }
/* uninitialized data (in same segment as writable data) */
__bss_start = .;