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      :
   {
_______________________________________________
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