Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8048749ybi; Tue, 23 Jul 2019 01:58:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwa/UZdj+akiDIMo6nP6kJFbKvWbCRCC5KBsIvo/eG1AuC03ArCubm9rwEjq7jUXdLq+630 X-Received: by 2002:a65:4844:: with SMTP id i4mr76712339pgs.113.1563872292147; Tue, 23 Jul 2019 01:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563872292; cv=none; d=google.com; s=arc-20160816; b=MJJ//yCOCKSdONnhTIXJCfq4hmVjBzNcHI98wlvUAGyN2JPBVlYv1nAQv5x+azyfra j9NyreH1NDLc1YK4DCIdv/mHxkUx58CTVT8QYsGCJCu1KOE5tpwYChvEI0eca5eJ0fuH TlYn6AQQkdMQLjBFwe1O/SHwauA5pL4un4aLdCLuP+g1sj9oG67//IVwzNkAJz+HZ8dz WvAstwniSyg4tAgvla7jj1UkvLRI2leHzhskOwuEH3Fz8t6iNZ2qY43FZNvhw4e2F+cR f4Tu60mBVolx+ldulVETEuF5JlUXB7vxxz5VEQu7h1rETO+KeLEhGstH/4QYw/XGLjgn +N+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=4FI5v7yChWDKy40TghmAxFQlb9RspR/YzR92MYe74dA=; b=lwTJce90mL64ASWGPzVtJ3Ud5KOMgkD/3gjZnhx9wwd68BCeUOu9hyXs2I7rT7moEx hWxDsp7dc3s1bjqFD6mPXMHfKP18XYd/wqYDDRLpzdtUWjzKJ56x/e359mlc4mOAzIva wHRc5YyTggvEi8tbgkvpmwe5hPsrIWjVSs/rPh/U/AtYkh3XiZh80cKeRrKJoNLq3Aj+ 88l4oHZqF1+OmdezQ9gc30zX0rGNXFNunSFuuN/H2muRZUQEt/JSw7gLwGmW18ZlC675 DEv81v4M7upm6wEoZOSuRRqYaWbGfohA29JoEIQDL+xyOSJw65AFIR7XCKL3pPjdggbA uDUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=firBOTyJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si10427162plr.405.2019.07.23.01.57.56; Tue, 23 Jul 2019 01:58:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=firBOTyJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387797AbfGWBbg (ORCPT + 99 others); Mon, 22 Jul 2019 21:31:36 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:22454 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728108AbfGWBbf (ORCPT ); Mon, 22 Jul 2019 21:31:35 -0400 Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x6N1VGIT023670; Tue, 23 Jul 2019 10:31:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x6N1VGIT023670 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563845477; bh=4FI5v7yChWDKy40TghmAxFQlb9RspR/YzR92MYe74dA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=firBOTyJ0pdoQGtFGnzZ6q4adxXd87IsePKVeEFn8ghWsWvxlrraAyE+U/2RTvo3F D+HW8iJwj3RNY/UNdo88jhZ3HAvp9Y6Evsvr2fDBcqMSvcEf9kVq/aMAx3rIfMa1JT grXHpOEFtx7LRjfEnNeP9cmaMux6A3Qdao8LAzt3oNuOxJJtNGKdlzqETe276gPEbA AQcVdpU3wlhNdpZaEeOrgvPd+hOEFF+eKImq6kmDQpxxqN+EWIVTws9gRSRNEjDgR8 PBtR8RrxiLO9EQhbZp1XDR4KY83bWcSg0h4b+oOFXmS+SJWeSkN7FqKGbGVeWAJKrr Duz71cJFbRrBA== X-Nifty-SrcIP: [209.85.217.49] Received: by mail-vs1-f49.google.com with SMTP id h28so27713083vsl.12; Mon, 22 Jul 2019 18:31:16 -0700 (PDT) X-Gm-Message-State: APjAAAWoSpgoZzRc6+KSGirlpg8/hhDmDsIAPOmO/nvMUCkl49pVxV6Q DhGETZqAB7sC2H25KEC/T4rE1gLUzpvP24dCYD4= X-Received: by 2002:a67:fc45:: with SMTP id p5mr45866193vsq.179.1563845475801; Mon, 22 Jul 2019 18:31:15 -0700 (PDT) MIME-Version: 1.0 References: <20190716170606.GA38406@archlinux-threadripper> In-Reply-To: From: Masahiro Yamada Date: Tue, 23 Jul 2019 10:30:39 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: Fail if gold linker is detected To: Mike Lothian Cc: Thomas Gleixner , Nathan Chancellor , LKML , Linus Torvalds , X86 ML , "H.J. Lu" , Linux Kbuild mailing list , "Theodore Y. Ts'o" , linux-arch Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 20, 2019 at 6:12 PM Mike Lothian wrote: > > On Wed, 17 Jul 2019 at 08:57, Thomas Gleixner wrote: > > > > On Wed, 17 Jul 2019, Masahiro Yamada wrote: > > > On Wed, Jul 17, 2019 at 4:47 AM Thomas Gleixner wrote: > > > > So instead of dealing with attempts to duct tape gold support without > > > > understanding the root cause and without support from the gold folks, fail > > > > the build when gold is detected. > > > > > > > > > > The code looks OK in the build system point of view. > > > > > > Please let me confirm this, just in case: > > > For now, we give up all architectures, not only x86, right? > > > > Well, that's the logical consequence of a statement which says: don't use > > gold for the kernel. > > > > > I have not not heard much from other arch maintainers. > > > > Cc'ed linux-arch for that matter. > > > > Thanks, > > > > tglx > > Hi > > I've done a bit more digging, I had a second machine that was building > Linus's tree just fine with ld.gold > > I tried forcing ld.bfd on the problem machine and got this: > > ld.bfd: arch/x86/boot/compressed/head_64.o: warning: relocation in > read-only section `.head.text' > ld.bfd: warning: creating a DT_TEXTREL in object > > I had a look at the differences in the kernel configs and noticed this: > > CONFIG_RANDOMIZE_BASE=y > CONFIG_X86_NEED_RELOCS=y > CONFIG_PHYSICAL_ALIGN=0x1000000 > CONFIG_DYNAMIC_MEMORY_LAYOUT=y > CONFIG_RANDOMIZE_MEMORY=y > CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0x0 > > Unsetting CONFIG_RANDOMIZE_BASE=y gets things working for me with ld.gold again Right. I was able to build with ld.gold So, we can use gold, depending on the kernel configuration. > In light of this - can we drop this patch? -- Best Regards Masahiro Yamada