svn commit: r313183 - stable/11/sys/boot/arm/uboot

Oleksandr Tymoshenko gonzo at FreeBSD.org
Sat Feb 4 01:24:22 UTC 2017


Author: gonzo
Date: Sat Feb  4 01:24:21 2017
New Revision: 313183
URL: https://svnweb.freebsd.org/changeset/base/313183

Log:
  MFC r310124 (by andrew):
  
  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
  
  PR:		216504

Modified:
  stable/11/sys/boot/arm/uboot/Makefile
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/boot/arm/uboot/Makefile
==============================================================================
--- stable/11/sys/boot/arm/uboot/Makefile	Sat Feb  4 01:21:48 2017	(r313182)
+++ stable/11/sys/boot/arm/uboot/Makefile	Sat Feb  4 01:24:21 2017	(r313183)
@@ -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-all mailing list