From owner-freebsd-ports@freebsd.org Thu May 10 12:34:36 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8123EFC81FA; Thu, 10 May 2018 12:34:36 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 043BD72502; Thu, 10 May 2018 12:34:36 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x232.google.com with SMTP id n202-v6so2884803ita.1; Thu, 10 May 2018 05:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=zs9HL9Ynwi1zMEJ3nwF26mFqeYenudyCayTmlN09D6o=; b=XiEXqddND68L6TK2vvRlZB09FCWFSNxrIqrOGnMTOBFo0oN1zFVvRDYEE4NnSYK7Z9 8w6CQUVCQD8Q665sZ81RmZ2sfaYhmyDcxl/dlMNu/+UFdgIdZs3kgoGPrj5lzr7pc6pX IJqPEFBr6zDACP2DYTpWaLWs0ze47Xxkkkd52w8xLitz/iHJVdpCPLx8F6dqca2WJa5A 7d5jpS3MJDIYUXStTg1+UhkilGa09sXtEaJWZQmtc2Vs2VhngbB+LBgpdZBmMXRX48+F YRMzlT2aDfinp2RES8jXMzLEN2cPbWrIWzIat+7S/ksSqvUZCOI77UCxiBRQ25t13I8e SKmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=zs9HL9Ynwi1zMEJ3nwF26mFqeYenudyCayTmlN09D6o=; b=UO3A9nGn4w3prFb3tq/9T0vg1YbzI82ie2mhiRT53ZNjztNH7LUT2HqitLZLLpxIpU R8KQLyby4Qfo5WEFSOmkPkoVLgkUERVAL/PBwCRFY+CKmMuojgtEHjawIQQT0IkJDiiY fukx2Wsb8WD2P1+lPZchSl/KwhYaY1oRUKH7mjLIyCK5N8d9/zVR2Mmuqn6zrvZi3oai oaH078eogxfU9PwULVnbTTPMA9jIwFreRulxCFMh+lIG3B0IpQb4ucTYfCne5z3f996N sHT9yFZbYqM9bUiNCTP82SJvgafoxP1dFNMkWqyozK+KoOEjJPvzvdR0qmGopL74eURk 4gSQ== X-Gm-Message-State: ALKqPwc3mYXPa6CMustyM5Qx6bx2Kfaz0qCj4SLFSUY6Jotw+kSf8ydw WaRzBkIABRrUgZewiOLY4IlLuXNWSGlDm/ZW4wIF+MKC X-Google-Smtp-Source: AB8JxZoOPcZOP1o1tOtQCshJS3aQFYW7Z3LoibMMIpiOatswCngjkIzXCXc4uZHexqMorzPMp/yXt5a25ApK1eXvcR4= X-Received: by 2002:a24:4293:: with SMTP id i141-v6mr1452571itb.54.1525955675236; Thu, 10 May 2018 05:34:35 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.130.167 with HTTP; Thu, 10 May 2018 05:34:14 -0700 (PDT) In-Reply-To: References: From: Ed Maste Date: Thu, 10 May 2018 08:34:14 -0400 X-Google-Sender-Auth: IZ8_phUBRMhGrsgwimfssqhjBQU Message-ID: Subject: Re: Heads-up: linker (lld) changes for amd64 coming soon To: "freebsd-toolchain@FreeBSD.org" , FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2018 12:34:36 -0000 On 26 March 2018 at 22:14, Ed Maste wrote: > Some changes related to the amd64 linker are nearly ready to be > committed (within a week or three), so I'm sending this notice to > request any final comments or concerns before these changes are made. It took somewhat longer than a week or three, but these changes will now happen quite soon. > 1. Kostik (kib@) has a patch to start using kernel ifunc, with the > first use being Supervisor Mode Access Prevention (SMAP) on amd64. > This relies on linker support that is available in the in-tree lld and > in contemporary binutils ld.bfd from ports, but not in the in-tree > ld.bfd 2.17.50. This is ready to be committed at any time. > 2. WITH_LLD_IS_LD controls whether /usr/bin/ld is ld.bfd or ld.lld, > and thus the linker used for linking ports. I plan to switch this to > default on. There was one significant remaining issue in the ports tree with lld as /usr/bin/ld: lang/ghc. This was due (at least in part) to a bug in lld's note handling. The bug is now fixed upstream and in FreeBSD in r333401. The latest version of ghc claims to have improved support for using lld as the linker, and a lang/ghc update is currently in progress (PR227968). Once this is committed I will request one more exp-run with lld. As long as those results are acceptable, I'll then make the switch to install lld as /usr/bin/ld on amd64.