Date: Sat, 4 Feb 2017 01:24:21 +0000 (UTC) From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r313183 - stable/11/sys/boot/arm/uboot Message-ID: <201702040124.v141OL6J091561@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702040124.v141OL6J091561>