mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
loader/efi: Linker sets not needed.
We don't need linker sets listed as sections. They are explicitly included in the objcopy we use to create the .efi file. This practice was added in 2002 by peter@ ina6d81d83a2
to make ia64 builds self-hosted. However, it was added back to the objcopy in 2010 by rpaulo in8df7a05edd
for i386 EFI support, though the ldscript file then retained them needlessly. The gcc/binutils bug having been fixed in the interim. We've not needed them since then, but the redundancy didn't matter. Sponsored by: Netflix Reviewed by: tsoome, kevans Differential Revision: https://reviews.freebsd.org/D44061
This commit is contained in:
parent
ec6cbe468f
commit
d024bc7ff5
|
@ -34,17 +34,6 @@ SECTIONS
|
|||
*(COMMON)
|
||||
}
|
||||
. = ALIGN(4096);
|
||||
set_Xcommand_set : {
|
||||
__start_set_Xcommand_set = .;
|
||||
*(set_Xcommand_set)
|
||||
__stop_set_Xcommand_set = .;
|
||||
}
|
||||
set_Xficl_compile_set : {
|
||||
__start_set_Xficl_compile_set = .;
|
||||
*(set_Xficl_compile_set)
|
||||
__stop_set_Xficl_compile_set = .;
|
||||
}
|
||||
. = ALIGN(4096);
|
||||
__gp = .;
|
||||
.sdata : {
|
||||
*(.got.plt .got)
|
||||
|
|
|
@ -42,16 +42,6 @@ SECTIONS
|
|||
*(.got.plt .got)
|
||||
*(.sdata*.sdata.* .gnu.linkonce.s.*)
|
||||
}
|
||||
set_Xcommand_set : {
|
||||
__start_set_Xcommand_set = .;
|
||||
*(set_Xcommand_set)
|
||||
__stop_set_Xcommand_set = .;
|
||||
}
|
||||
set_Xficl_compile_set : {
|
||||
__start_set_Xficl_compile_set = .;
|
||||
*(set_Xficl_compile_set)
|
||||
__stop_set_Xficl_compile_set = .;
|
||||
}
|
||||
__gp = .;
|
||||
.plt : { *(.plt) }
|
||||
.reloc : { *(.reloc) }
|
||||
|
|
|
@ -39,17 +39,6 @@ SECTIONS
|
|||
__bss_end = .;
|
||||
}
|
||||
. = ALIGN(16);
|
||||
set_Xcommand_set : {
|
||||
__start_set_Xcommand_set = .;
|
||||
*(set_Xcommand_set)
|
||||
__stop_set_Xcommand_set = .;
|
||||
}
|
||||
set_Xficl_compile_set : {
|
||||
__start_set_Xficl_compile_set = .;
|
||||
*(set_Xficl_compile_set)
|
||||
__stop_set_Xficl_compile_set = .;
|
||||
}
|
||||
. = ALIGN(16);
|
||||
__gp = .;
|
||||
.sdata : {
|
||||
*(.got.plt .got)
|
||||
|
|
|
@ -35,17 +35,6 @@ SECTIONS
|
|||
__bss_end = .;
|
||||
}
|
||||
. = ALIGN(16);
|
||||
set_Xcommand_set : {
|
||||
__start_set_Xcommand_set = .;
|
||||
*(set_Xcommand_set)
|
||||
__stop_set_Xcommand_set = .;
|
||||
}
|
||||
set_Xficl_compile_set : {
|
||||
__start_set_Xficl_compile_set = .;
|
||||
*(set_Xficl_compile_set)
|
||||
__stop_set_Xficl_compile_set = .;
|
||||
}
|
||||
. = ALIGN(16);
|
||||
.sdata : {
|
||||
/*
|
||||
* u-boot expects the gp register to be untouched by the EFI payload, so we
|
||||
|
|
Loading…
Reference in a new issue