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) }
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to