]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader/efi: Linker sets not needed.
authorWarner Losh <imp@FreeBSD.org>
Sun, 25 Feb 2024 00:57:04 +0000 (17:57 -0700)
committerWarner Losh <imp@FreeBSD.org>
Sun, 25 Feb 2024 00:57:04 +0000 (17:57 -0700)
commitd024bc7ff5e80537438b4556810782e9a8257b44
treeafdb27a75dd05f10c19b7b4930297c095e2f3854
parentec6cbe468fb364a763fdea3a2803481624702cad
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@ in a6d81d83a280 to make ia64 builds
self-hosted. However, it was added back to the objcopy in 2010 by rpaulo
in 8df7a05edd36 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
stand/efi/loader/arch/amd64/amd64.ldscript
stand/efi/loader/arch/arm/arm.ldscript
stand/efi/loader/arch/arm64/arm64.ldscript
stand/efi/loader/arch/riscv/riscv.ldscript