Date: Wed, 16 Aug 2017 18:55:39 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r322589 - head/lib/libc/i386 Message-ID: <201708161855.v7GItdFB083727@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Wed Aug 16 18:55:39 2017 New Revision: 322589 URL: https://svnweb.freebsd.org/changeset/base/322589 Log: force use of ld.bfd for linking i386 libc, even when using lld 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. Sponsored by: The FreeBSD Foundation Modified: head/lib/libc/i386/Makefile.inc Modified: head/lib/libc/i386/Makefile.inc ============================================================================== --- head/lib/libc/i386/Makefile.inc Wed Aug 16 18:48:53 2017 (r322588) +++ head/lib/libc/i386/Makefile.inc Wed Aug 16 18:55:39 2017 (r322589) @@ -4,3 +4,13 @@ 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 <bsd.linker.mk> +.if ${LINKER_TYPE} == "lld" && ${MK_BINUTILS_BOOTSTRAP} != "no" +LDFLAGS+=-fuse-ld=bfd +.endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708161855.v7GItdFB083727>