From f32672272f37100dfa23f1f01c16d6388543ba64 Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Mon, 14 Dec 2020 00:54:05 +0000 Subject: loader: Ignore the .interp section on RISC-V Without this we risk having the .interp section be placed earlier in the file and mess with section offsets; in particular it has been seen to be placed at the start of the file and cause the PE/COFF header to not be at address 0. This is the same fix as was done for arm64 in r365578. Reviewed by: mhorne, imp Approved by: mhorne, imp Differential Revision: https://reviews.freebsd.org/D27603 --- stand/efi/loader/arch/riscv/ldscript.riscv | 1 + 1 file changed, 1 insertion(+) (limited to 'stand') diff --git a/stand/efi/loader/arch/riscv/ldscript.riscv b/stand/efi/loader/arch/riscv/ldscript.riscv index 722c5fa360fa..aa736f0d9b2a 100644 --- a/stand/efi/loader/arch/riscv/ldscript.riscv +++ b/stand/efi/loader/arch/riscv/ldscript.riscv @@ -82,6 +82,7 @@ SECTIONS _edata = .; /* Unused sections */ + .interp : { *(.interp) } .dynstr : { *(.dynstr) } .hash : { *(.hash) } } -- cgit v1.2.3