svn commit: r305355 - head/sys/conf

Andrew Turner andrew at FreeBSD.org
Sat Sep 3 17:23:25 UTC 2016


Author: andrew
Date: Sat Sep  3 17:23:24 2016
New Revision: 305355
URL: https://svnweb.freebsd.org/changeset/base/305355

Log:
  Explicitly include all .rodata.* sections in the kernel .rodata. This
  helps link the kernel with lld as it will then put all these into a single
  .rodata section.
  
  MFC after:	1 week
  Sponsored by:	ABT Systems Ltd

Modified:
  head/sys/conf/ldscript.arm64

Modified: head/sys/conf/ldscript.arm64
==============================================================================
--- head/sys/conf/ldscript.arm64	Sat Sep  3 15:28:09 2016	(r305354)
+++ head/sys/conf/ldscript.arm64	Sat Sep  3 17:23:24 2016	(r305355)
@@ -18,7 +18,7 @@ SECTIONS
   _etext = .;
   PROVIDE (etext = .);
   .fini      : { *(.fini)    } =0x9090
-  .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
+  .rodata    : { *(.rodata*) *(.gnu.linkonce.r*) }
   .rodata1   : { *(.rodata1) }
    .interp     : { *(.interp) 	}
   .hash          : { *(.hash)		}


More information about the svn-src-all mailing list