git: f5f08e41aa57 - main - loader/efi: Only include interpreter's linker script

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 25 Feb 2024 00:58:36 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=f5f08e41aa57f94e3c127a488a82b4e518781f89

commit f5f08e41aa57f94e3c127a488a82b4e518781f89
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-25 00:57:29 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-02-25 00:57:29 +0000

    loader/efi: Only include interpreter's linker script
    
    For safety, only include the interpreter's linker script. Note that the
    simple loader doesn't have one, but it's not an error to copy a ELF
    section that does not exist. No functional change, however.
    
    Sponsored by:           Netflix
    Reviewed by:            tsoome, kevans
    Differential Revision:  https://reviews.freebsd.org/D44064
---
 stand/efi/loader/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/efi/loader/Makefile b/stand/efi/loader/Makefile
index b8a98fc1dd47..b3395bdfdf53 100644
--- a/stand/efi/loader/Makefile
+++ b/stand/efi/loader/Makefile
@@ -117,7 +117,7 @@ ${LOADER}.efi: ${PROG}
 	${OBJCOPY} -j .peheader -j .text -j .sdata -j .data \
 		-j .dynamic -j .dynsym -j .rel.dyn \
 		-j .rela.dyn -j .reloc -j .eh_frame -j set_Xcommand_set \
-		-j set_X4th_compile_set -j set_Xlua_compile_set \
+		-j set_X${LOADER_INTERP}_compile_set \
 		--output-target=${EFI_TARGET} ${.ALLSRC} ${.TARGET}
 
 LIBEFI=		${BOOTOBJ}/efi/libefi/libefi.a