svn commit: r310124 - head/sys/boot/arm/uboot

Andrew Turner andrew at FreeBSD.org
Thu Dec 15 17:36:56 UTC 2016


Author: andrew
Date: Thu Dec 15 17:36:54 2016
New Revision: 310124
URL: https://svnweb.freebsd.org/changeset/base/310124

Log:
  Add -fPIC to the ubldr build. Without this the self relocation code will
  try to use an absolute address in a switch statement, jumping to an invalid
  memory location.
  
  Sponsored by:	ABT Systems Ltd

Modified:
  head/sys/boot/arm/uboot/Makefile

Modified: head/sys/boot/arm/uboot/Makefile
==============================================================================
--- head/sys/boot/arm/uboot/Makefile	Thu Dec 15 17:34:18 2016	(r310123)
+++ head/sys/boot/arm/uboot/Makefile	Thu Dec 15 17:36:54 2016	(r310124)
@@ -109,6 +109,8 @@ CFLAGS+=	-I${.OBJDIR}/../../uboot/lib
 # where to get libstand from
 CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/
 
+CFLAGS+=	-fPIC
+
 # clang doesn't understand %D as a specifier to printf
 NO_WERROR.clang=
 


More information about the svn-src-head mailing list