Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2017 15:50:46 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326978 - head/sys/conf
Message-ID:  <201712191550.vBJFokHx080421@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Tue Dec 19 15:50:46 2017
New Revision: 326978
URL: https://svnweb.freebsd.org/changeset/base/326978

Log:
  Make __startkernel line up with KERNBASE, so that the math to compute the
  applied relocation offset in link_elf.c works as intended. We may want to
  revisit how that works in future, for example by having elf_reloc_self()
  actually store the numbers it is using rather than computing them later,
  but this fixes symbol lookup after r326203.
  
  Reported by:	andreast@
  Pointy hat to:	me

Modified:
  head/sys/conf/ldscript.powerpc64

Modified: head/sys/conf/ldscript.powerpc64
==============================================================================
--- head/sys/conf/ldscript.powerpc64	Tue Dec 19 14:11:41 2017	(r326977)
+++ head/sys/conf/ldscript.powerpc64	Tue Dec 19 15:50:46 2017	(r326978)
@@ -11,7 +11,7 @@ SECTIONS
   /* Read-only sections, merged into text segment: */
 
   . = kernbase;
-  PROVIDE (begin = . - SIZEOF_HEADERS);
+  PROVIDE (begin = .);
 
   .text      :
   {



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