svn commit: r277621 - projects/powernv/conf

Nathan Whitehorn nwhitehorn at FreeBSD.org
Fri Jan 23 23:52:34 UTC 2015


Author: nwhitehorn
Date: Fri Jan 23 23:52:33 2015
New Revision: 277621
URL: https://svnweb.freebsd.org/changeset/base/277621

Log:
  Build kernel as a position-independent executable, required for it to be a
  skiboot payload.
  
  Sponsored by:	FreeBSD Foundation

Modified:
  projects/powernv/conf/Makefile.powerpc

Modified: projects/powernv/conf/Makefile.powerpc
==============================================================================
--- projects/powernv/conf/Makefile.powerpc	Fri Jan 23 23:49:33 2015	(r277620)
+++ projects/powernv/conf/Makefile.powerpc	Fri Jan 23 23:52:33 2015	(r277621)
@@ -37,6 +37,11 @@ INCLUDES+= -I$S/contrib/libfdt
 
 CFLAGS+= -msoft-float -Wa,-many
 
+.if ${MACHINE_ARCH} == "powerpc64"
+CFLAGS+= -fPIC
+LDFLAGS+= -pie
+.endif
+
 .if !empty(DDB_ENABLED)
 CFLAGS+=	-fno-omit-frame-pointer
 .endif


More information about the svn-src-projects mailing list