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
This commit is contained in:
Jessica Clarke 2020-12-14 00:54:05 +00:00
parent 87973534d2
commit f32672272f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368626

View File

@ -82,6 +82,7 @@ SECTIONS
_edata = .;
/* Unused sections */
.interp : { *(.interp) }
.dynstr : { *(.dynstr) }
.hash : { *(.hash) }
}