From b092f3033fdd2c85081d698d3ec6ac94f5555764 Mon Sep 17 00:00:00 2001 From: emaste Date: Sat, 16 Dec 2017 15:17:54 +0000 Subject: [PATCH] revert r322589: force use of ld.bfd for linking i386 libc As of r326897 ld.lld can link a working i386 libc.so, so we no longer need to force use of ld.bfd. Sponsored by: The FreeBSD Foundation --- lib/libc/i386/Makefile.inc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/libc/i386/Makefile.inc b/lib/libc/i386/Makefile.inc index 9080f5686712..4470cdbaed35 100644 --- a/lib/libc/i386/Makefile.inc +++ b/lib/libc/i386/Makefile.inc @@ -4,13 +4,3 @@ GDTOASRCS+=strtorx.c SRCS+=machdep_ldisx.c SYM_MAPS+=${LIBC_SRCTOP}/i386/Symbol.map - -# XXX force use of ld.bfd for linking i386 libc -# -# lld can successfully link most of a working i386 userland and kernel, -# but produces a broken libc. For now if we're otherwise using lld, and -# ld.bfd is available, explicitly use it for libc. -.include -.if ${LINKER_TYPE} == "lld" && ${MK_BINUTILS_BOOTSTRAP} != "no" -LDFLAGS+=-fuse-ld=bfd -.endif