summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2001-06-10 13:39:10 +0000
committerdfr <dfr@FreeBSD.org>2001-06-10 13:39:10 +0000
commit7920a5b45157bd15d45ccf66518b800d798bdb00 (patch)
treeeaa6ed536cc4975a1befef3aac6a17d19cee81eb
parent6d5e0c4ed300f8648d565e3bbfc7d730e65adfbe (diff)
downloadFreeBSD-src-7920a5b45157bd15d45ccf66518b800d798bdb00.zip
FreeBSD-src-7920a5b45157bd15d45ccf66518b800d798bdb00.tar.gz
Move the first section up one page. The firmware bogusly uses the first
page of the image to load section headers and if we let the text section start at zero, it corrupts the section table when its loaded. With this change, the loader gets as far as the 'ok' prompt.
-rw-r--r--sys/boot/efi/libefi/arch/ia64/ldscript.ia641
-rw-r--r--sys/boot/ia64/efi/ldscript.ia641
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/efi/libefi/arch/ia64/ldscript.ia64 b/sys/boot/efi/libefi/arch/ia64/ldscript.ia64
index 13d5971..0f421da 100644
--- a/sys/boot/efi/libefi/arch/ia64/ldscript.ia64
+++ b/sys/boot/efi/libefi/arch/ia64/ldscript.ia64
@@ -7,6 +7,7 @@ SECTIONS
/* Read-only sections, merged into text segment: */
. = 0;
ImageBase = .;
+ . += 4096;
.text :
{
*(.text)
diff --git a/sys/boot/ia64/efi/ldscript.ia64 b/sys/boot/ia64/efi/ldscript.ia64
index 13d5971..0f421da 100644
--- a/sys/boot/ia64/efi/ldscript.ia64
+++ b/sys/boot/ia64/efi/ldscript.ia64
@@ -7,6 +7,7 @@ SECTIONS
/* Read-only sections, merged into text segment: */
. = 0;
ImageBase = .;
+ . += 4096;
.text :
{
*(.text)
OpenPOWER on IntegriCloud