Hello,
Is this 12-CURRENT only or also applicable to 11-STABLE?
Regards,
Ronald.
On Thu, 15 Dec 2016 18:36:55 +0100, Andrew Turner <and...@freebsd.org>
wrote:
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=
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"