From 5f9186c384db6886a1079fd0477ce008125ba9e4 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Thu, 10 Sep 2020 14:13:49 +0000 Subject: [PATCH] Ignore the .interp section in the arm64 EFI loader When building the loader an unneeded .interp section may be added. Move this to the unused section region so offsets of used sections don't change. Obtained from: CheriBSD Sponsored by: Innovate UK (cherry picked from commit 6215ed7c5c0e8cdd536123ec658a081748cfc85c) --- stand/efi/loader/arch/arm64/ldscript.arm64 | 1 + 1 file changed, 1 insertion(+) diff --git a/stand/efi/loader/arch/arm64/ldscript.arm64 b/stand/efi/loader/arch/arm64/ldscript.arm64 index 685c0967840..d0ed320a319 100644 --- a/stand/efi/loader/arch/arm64/ldscript.arm64 +++ b/stand/efi/loader/arch/arm64/ldscript.arm64 @@ -80,6 +80,7 @@ SECTIONS _edata = .; /* Unused sections */ + .interp : { *(.interp) } .dynstr : { *(.dynstr) } .hash : { *(.hash) } } -- 2.45.0