aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2001-06-10 13:39:10 +0000
committerDoug Rabson <dfr@FreeBSD.org>2001-06-10 13:39:10 +0000
commitfaf8077790120ad1b419b2f41727bbecf0d7d52b (patch)
treeeaa6ed536cc4975a1befef3aac6a17d19cee81eb
parent35ca79092b70a5bfc4e3034b8cfe1fe03ae063a2 (diff)
downloadsrc-faf8077790120ad1b419b2f41727bbecf0d7d52b.tar.gz
src-faf8077790120ad1b419b2f41727bbecf0d7d52b.zip
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.
Notes
Notes: svn path=/head/; revision=77979
-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 13d5971fb8cb..0f421da0ec55 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 13d5971fb8cb..0f421da0ec55 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)