From faf8077790120ad1b419b2f41727bbecf0d7d52b Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Sun, 10 Jun 2001 13:39:10 +0000 Subject: [PATCH] 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(+) diff --git a/sys/boot/efi/libefi/arch/ia64/ldscript.ia64 b/sys/boot/efi/libefi/arch/ia64/ldscript.ia64 index 13d5971fb8c..0f421da0ec5 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 13d5971fb8c..0f421da0ec5 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)