From 7920a5b45157bd15d45ccf66518b800d798bdb00 Mon Sep 17 00:00:00 2001 From: dfr Date: Sun, 10 Jun 2001 13:39:10 +0000 Subject: 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. --- sys/boot/efi/libefi/arch/ia64/ldscript.ia64 | 1 + sys/boot/ia64/efi/ldscript.ia64 | 1 + 2 files changed, 2 insertions(+) (limited to 'sys/boot') 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) -- cgit v1.1