svn commit: r368626 - head/stand/efi/loader/arch/riscv
Jessica Clarke <[email protected]> Mon, 14 Dec 2020 00:54:05 +0000 (UTC)
| Newsgroups | gmane.os.freebsd.devel.cvs |
|---|---|
| Message-ID | <202012140054.0BE0s5gv047748__2996.15019919059$1607907253$gmane$org@repo.freebsd.org> |
Author: jrtc27
Date: Mon Dec 14 00:54:05 2020
New Revision: 368626
URL: https://svnweb.freebsd.org/changeset/base/368626
Log:
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
Modified:
head/stand/efi/loader/arch/riscv/ldscript.riscv
Modified: head/stand/efi/loader/arch/riscv/ldscript.riscv
==============================================================================
--- head/stand/efi/loader/arch/riscv/ldscript.riscv Mon Dec 14 00:50:45 2020 (r368625)
+++ head/stand/efi/loader/arch/riscv/ldscript.riscv Mon Dec 14 00:54:05 2020 (r368626)
@@ -82,6 +82,7 @@ SECTIONS
_edata = .;
/* Unused sections */
+ .interp : { *(.interp) }
.dynstr : { *(.dynstr) }
.hash : { *(.hash) }
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"