From owner-svn-src-head@freebsd.org Sat Jan 13 03:41:50 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2A113E6FAB8; Sat, 13 Jan 2018 03:41:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr0-x236.google.com (mail-wr0-x236.google.com [IPv6:2a00:1450:400c:c0c::236]) (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 C38F470E72; Sat, 13 Jan 2018 03:41:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr0-x236.google.com with SMTP id 36so6949377wrh.1; Fri, 12 Jan 2018 19:41:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SmRPBui1xfHgOIUwxk3vglukN3vaeEQrl1Z6fjF6n0U=; b=MYKxa7wvIs+Y+YI//eMFKC5g+MUZSf6CPoPpHKB/076vhQO6PKD3XnRl6f4rPne2sr ySXXFib4T19oD589z/FG/EGK8XO36e6cRyYeQEFEJwZslC7BjCx1AC3eTs58zWUNC4SP a+9k/V6WjtCdNaO0QZ2ldv0jP5OaUXkP4ut1pGPj25Z7EfMeCe689JKmp74ATA9/9nTf 7jabVVsbaY5InJL3NGzo/DAmWtxUKz2/lW+lu+anX82fvEZ2nswmapMtgIO8Iowb3Tp7 QJLaJgAmtAS2JAWH4zkQ0+jAj5DC+Tnfm+AAk5jS/9FC0DAug9BZrZCRESa8oFLFtci/ 3q6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SmRPBui1xfHgOIUwxk3vglukN3vaeEQrl1Z6fjF6n0U=; b=gm94uBlKNF0x3UjnEYZH3VZ64zupjO2wmjdUMmw/wQObP1GHyBYTDm8yIuWXE9BI8O inrJ2rmE7e8n1SRl9aR2tXOf6I+Vybo+HrwC5lWvkg7P69CAzjbi9K5q/01V3ytobZmh lyudBHViyV+vm+HifBSNpc3PKGZ+Qt1NUkKqCqpdgakmKXddvLWWTjx1lxbTvcvBcCJ1 F+G9XbQ8TI7GtV9NPnNH373KkL9v8kK/ct/YC7uTb5zGAd9FE+wv4O/nRnKyqVBqT6So nbY+Mr/Hormx60KYnZBRb05xg/NPxLpAZ38FxbKDmDRSoW3wsdUSP2YEPS0Zw4/hCWMN HaIQ== X-Gm-Message-State: AKGB3mL0FjOHba4X3OS2BKqFpChz9l1OSyQALKeeex0KuX+tYwHHPG8G xHyVI8S8cQWnYhdOklCd8Rshj7/2Ej4G5gMZ7HCixQ== X-Google-Smtp-Source: ACJfBouGIr+CNR+U7zLl9BJOheqhV5/lBNE9q4wn1ihY1IO44fbhMuFaK+a6hU+4dJana6rMygYBwggoaIRsYJxJfO0= X-Received: by 10.223.190.142 with SMTP id i14mr18284854wrh.111.1515814906850; Fri, 12 Jan 2018 19:41:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.213.11 with HTTP; Fri, 12 Jan 2018 19:41:45 -0800 (PST) In-Reply-To: <3584752.ozb5ohFTAi@ralph.baldwin.cx> References: <201801102028.w0AKS1UA000454@repo.freebsd.org> <3584752.ozb5ohFTAi@ralph.baldwin.cx> From: Adrian Chadd Date: Fri, 12 Jan 2018 19:41:45 -0800 Message-ID: Subject: Re: svn commit: r327783 - head/share/mk To: John Baldwin Cc: Ed Maste , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2018 03:41:50 -0000 hi, can we just flip the switch back for now until it's figured out? Some of us have to like, do development on -HEAD for fun. :) -a On 12 January 2018 at 17:46, John Baldwin wrote: > On Wednesday, January 10, 2018 08:28:01 PM Ed Maste wrote: >> Author: emaste >> Date: Wed Jan 10 20:28:01 2018 >> New Revision: 327783 >> URL: https://svnweb.freebsd.org/changeset/base/327783 >> >> Log: >> Enable ld.lld as bootstrap linker by default on amd64 >> >> For some time we have been planning to migrate to LLVM's lld linker. >> Having a man page was the last blocking issue for using ld.lld to link >> the base system kernel + userland, now addressed by r327770. Link the >> kernel and userland libraries and binaries with ld.lld by default, for >> additional test coverage. >> >> This has been a long time in the making. On 2013-04-13 I submitted an >> upstream tracking issue in LLVM PR 23214: [META] Using LLD as FreeBSD's >> system linker. Since then 85 individual issues were identified, and >> submitted as dependencies. These have been addressed along with two >> and a half years of other lld development and improvement. >> >> I'd like to express deep gratitude to upstream lld developers Rui >> Ueyama, Rafael Espindola, George Rimar and Davide Italiano. They put in >> substantial effort in addressing the issues we found affecting >> FreeBSD/amd64. >> >> To revert to using ld.bfd as the bootstrap linker, in /etc/src.conf set >> >> WITHOUT_LLD_BOOTSTRAP=yes >> >> If you need to set this, please follow up with a PR or post to the >> freebsd-toolchain mailing list explaining how default WITH_LLD_BOOTSTRAP >> failed for your use case. >> >> Note that GNU ld.bfd is still installed as /usr/bin/ld, and will still >> be used for linking ports. ld.lld can be installed as /usr/bin/ld by >> setting in /etc/src.conf >> >> WITH_LLD_IS_LLD=yes >> >> A followup commit will set WITH_LLD_IS_LD by default, possibly after >> Clang/LLVM/lld 6.0 is merged to FreeBSD. >> >> Release notes: Yes >> Sponsored by: The FreeBSD Foundation > > FYI, due to a quirk of how we load kernel modules on amd64 in such a way that > doesn't really honor the ELF spec (but is self-consistent in the kernel and > loader) and the fact that LLD doesn't sort sections the way BFD does, this > change has confused kgdb such that it can compute different address for > symbols. I dont think i386 is affected, only amd64. I've started on a fix, > but my first attempt to boot it resulted in no modules loading anymore and > it's time to go home for the day. :-P I'll try to resolve this early next > week. If you need to use kgdb on amd64 with kernel modules, you will have > to build with an external toolchain (the old ld.bfd can't cope with the > kernel ifunc stuff). > > -- > John Baldwin >