svn commit: r323688 - projects/powernv/conf

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun Sep 17 21:41:52 UTC 2017


Author: nwhitehorn
Date: Sun Sep 17 21:41:51 2017
New Revision: 323688
URL: https://svnweb.freebsd.org/changeset/base/323688

Log:
  Turn on ELFv2 kernels by default if we have a capable toolchain (GCC >= 4.9).
  This makes our kernels more Linux-like, which helps with some bootloaders
  (kexec, for instance), and provides some marginal efficiency benefits.
  Clang also supports ELFv2, but in-tree binutils does not, which is a trickier
  combination to gate on.

Modified:
  projects/powernv/conf/kern.mk

Modified: projects/powernv/conf/kern.mk
==============================================================================
--- projects/powernv/conf/kern.mk	Sun Sep 17 20:07:20 2017	(r323687)
+++ projects/powernv/conf/kern.mk	Sun Sep 17 21:41:51 2017	(r323688)
@@ -172,10 +172,15 @@ CFLAGS.gcc+=	-mno-spe
 .endif
 
 #
-# Use dot symbols on powerpc64 to make ddb happy
+# Use dot symbols (or, better, the V2 ELF ABI) on powerpc64 to make
+# DDB happy. ELFv2, if available, has some other efficiency benefits.
 #
 .if ${MACHINE_ARCH} == "powerpc64"
+.if ${COMPILER_VERSION} >= 40900
+CFLAGS.gcc+=	-mabi=elfv2
+.else
 CFLAGS.gcc+=	-mcall-aixdesc
+.endif
 .endif
 
 #


More information about the svn-src-projects mailing list