Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Dec 2020 00:54:05 +0000 (UTC)
From:      Jessica Clarke <jrtc27@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r368626 - head/stand/efi/loader/arch/riscv
Message-ID:  <202012140054.0BE0s5gv047748@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) }
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012140054.0BE0s5gv047748>