From 4e70269a832650804853a8e07584a30e01aa78ad Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 6 Apr 2002 03:39:22 +0000 Subject: Fix self hosted loader building. When you use a self configured gcc, it detects and uses the gas section merge support. As a result, a whole bunch of new sections arrive, including .rodata.str1.8, which was not included in our custom ldscript.ia64. The result was a loader binary that EFI rejected. While here, collect the loader shell commands linker set and include it in the data area rather than having its own section. /boot/loader.efi was the last holdout for having a 100% self built ia64 system. --- sys/boot/efi/libefi/arch/ia64/ldscript.ia64 | 7 ++++--- sys/boot/efi/loader/Makefile | 1 - sys/boot/ia64/efi/Makefile | 1 - sys/boot/ia64/efi/ldscript.ia64 | 7 ++++--- 4 files changed, 8 insertions(+), 8 deletions(-) (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 3d2e4e5..aa02808 100644 --- a/sys/boot/efi/libefi/arch/ia64/ldscript.ia64 +++ b/sys/boot/efi/libefi/arch/ia64/ldscript.ia64 @@ -22,9 +22,10 @@ SECTIONS . = ALIGN(4096); .data : { - *(.rodata) - *(.rodata1) - *(.set.*) + *(.rodata*) + __start_set_Xcommand_set = .; + *(set_Xcommand_set) + __stop_set_Xcommand_set = .; *(.ctors) *(.data) *(.data1) diff --git a/sys/boot/efi/loader/Makefile b/sys/boot/efi/loader/Makefile index 9e6200f..61848df 100644 --- a/sys/boot/efi/loader/Makefile +++ b/sys/boot/efi/loader/Makefile @@ -54,7 +54,6 @@ vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${BASE}.efi: ${BASE}.sym ${OBJCOPY} -j .text \ - -j set_Xcommand_set \ -j .hash \ -j .data \ -j .sdata \ diff --git a/sys/boot/ia64/efi/Makefile b/sys/boot/ia64/efi/Makefile index 9e6200f..61848df 100644 --- a/sys/boot/ia64/efi/Makefile +++ b/sys/boot/ia64/efi/Makefile @@ -54,7 +54,6 @@ vers.o: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${BASE}.efi: ${BASE}.sym ${OBJCOPY} -j .text \ - -j set_Xcommand_set \ -j .hash \ -j .data \ -j .sdata \ diff --git a/sys/boot/ia64/efi/ldscript.ia64 b/sys/boot/ia64/efi/ldscript.ia64 index 3d2e4e5..aa02808 100644 --- a/sys/boot/ia64/efi/ldscript.ia64 +++ b/sys/boot/ia64/efi/ldscript.ia64 @@ -22,9 +22,10 @@ SECTIONS . = ALIGN(4096); .data : { - *(.rodata) - *(.rodata1) - *(.set.*) + *(.rodata*) + __start_set_Xcommand_set = .; + *(set_Xcommand_set) + __stop_set_Xcommand_set = .; *(.ctors) *(.data) *(.data1) -- cgit v1.1