Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 2019 20:07:43 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351135 - head/stand/i386/boot2
Message-ID:  <201908162007.x7GK7hcY000547@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Fri Aug 16 20:07:43 2019
New Revision: 351135
URL: https://svnweb.freebsd.org/changeset/base/351135

Log:
  stand: boot2: fix build with xtoolchain-llvm90
  
  ufsread.c grows a dependency on __ashldi3 with llvm90. Grab ashldi3.c out of
  compiler-rt rather than trying to link against libsa (for now).
  -Wno-missing-prototypes is necessary to compile ashldi3.c standalone.
  
  Reviewed by:	imp
  MFC after:	1 week
  Differential Revision:	https://reviews.freebsd.org/D21291

Modified:
  head/stand/i386/boot2/Makefile

Modified: head/stand/i386/boot2/Makefile
==============================================================================
--- head/stand/i386/boot2/Makefile	Fri Aug 16 19:46:22 2019	(r351134)
+++ head/stand/i386/boot2/Makefile	Fri Aug 16 20:07:43 2019	(r351135)
@@ -78,7 +78,12 @@ boot2.ldr:
 boot2.bin: boot2.out
 	${OBJCOPY} -S -O binary boot2.out ${.TARGET}
 
-boot2.out: ${BTXCRT} boot2.o sio.o
+# For __ashldi3
+.PATH: ${SRCTOP}/contrib/compiler-rt/lib/builtins
+CFLAGS.ashldi3.c=	-Wno-missing-prototypes
+CLEANFILES+=	ashldi3.o
+
+boot2.out: ${BTXCRT} boot2.o sio.o ashldi3.o
 	${LD} ${LD_FLAGS} -Ttext ${ORG2} -o ${.TARGET} ${.ALLSRC}
 
 SRCS=	boot2.c boot2.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908162007.x7GK7hcY000547>