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.
This commit is contained in:
peter 2002-04-06 03:39:22 +00:00
parent ec999f8323
commit 4e70269a83
4 changed files with 8 additions and 8 deletions

View File

@ -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)

View File

@ -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 \

View File

@ -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 \

View File

@ -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)