diff options
author | Jessica Clarke <jrtc27@FreeBSD.org> | 2020-12-14 00:54:05 +0000 |
---|---|---|
committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2020-12-14 00:54:05 +0000 |
commit | f32672272f37100dfa23f1f01c16d6388543ba64 (patch) | |
tree | 03137de0dccc8bb60017c714f2f86542e8eb2a3d /stand | |
parent | 87973534d2d67df59309d206a18fbdb256b589dd (diff) | |
download | src-test-f32672272f37100dfa23f1f01c16d6388543ba64.tar.gz src-test-f32672272f37100dfa23f1f01c16d6388543ba64.zip |
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
Notes
Notes:
svn path=/head/; revision=368626
Diffstat (limited to 'stand')
-rw-r--r-- | stand/efi/loader/arch/riscv/ldscript.riscv | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stand/efi/loader/arch/riscv/ldscript.riscv b/stand/efi/loader/arch/riscv/ldscript.riscv index 722c5fa360fa3..aa736f0d9b2a4 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) } } |