]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: Ignore the .interp section on RISC-V
authorjrtc27 <jrtc27@FreeBSD.org>
Mon, 14 Dec 2020 00:54:05 +0000 (00:54 +0000)
committerjrtc27 <jrtc27@FreeBSD.org>
Mon, 14 Dec 2020 00:54:05 +0000 (00:54 +0000)
commit5bc600ddc13d4abb9bfeaf28a980f5d12771a90b
tree03137de0dccc8bb60017c714f2f86542e8eb2a3d
parent080d922c8d4f3b1e10659290003200ab12e6a356
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