Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5046709ybi; Sat, 20 Jul 2019 11:41:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRQZdIr0RNrGqSteWAPvSJHUvlccGB0orf+WCc2REQ/qCPcjkm+wuFsampUYbG6iBHD1un X-Received: by 2002:a17:902:8ec3:: with SMTP id x3mr63310990plo.313.1563648071234; Sat, 20 Jul 2019 11:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563648071; cv=none; d=google.com; s=arc-20160816; b=edB0lMN2sV28vIu/G2vvc8uMO22jMcp3CfWvPfVaUtRc2ZgwuXNnNsiexOHU1qB7Sy keafEHAOL66llR22YMVPjW6QC3Rz4VZeOOdVfShEhtZnHB9yDv8oPJGmS7eITfkr7/vB 0ggXAajctUFywEXe1s5CKfUOPcG4UKjxx9b4hATrUvfDMBR28TDN2TmD1VnOtCrwVxon G8MsuPTXFbd4gNzIul/XkLieYiRzBFyCstJuO23883VGzyHOUV4QVM79WT/ZNGkzxunH zqlOzZPZH62SXXY8xZZgwKxwmMwxMZNK9oPpiEcIIsho4VcnqiQ9CHwsetL0uQGCj9kP XLjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=XAuXIIX3gw0cEgT2LU2d+hcgkLiIz/F3Zkg34azt4O8=; b=a12qc4tTSqgv+BrPkStAsrsdjktJm9M4r4clO01Aoq9ADvKmq0irDU8qWHPWcGbyl/ ThEu4QoaDm1duV6Evm9hXVcebumr5BltzV3H1C1ay5DpnLKBMn3EKPowrGE6LwSUxN1p bibZed0A5QpOvL2SFScjt+DQAKr8gnGxbnSuIfJB9+CoOH/840OX2zhYO3gdDwy6B1X3 XWtwuIaiRXD81CdS/GwqrY7xI7z99Sn42FG82WC9M1w6dOsdth0HDIhtFgbdDdmMoHsf jTOwQwFnMnj5IbDrtZEyNhlquisVrwAabAW5uxANX9K2F5FWh07ClVaeIQqk/bGCEpym h2hg== ARC-Authentication-Results: i=1; mx.google.com; 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 x61si4885462plb.336.2019.07.20.11.40.55; Sat, 20 Jul 2019 11:41:11 -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; 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 S1727407AbfGTJee (ORCPT + 99 others); Sat, 20 Jul 2019 05:34:34 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:33872 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727213AbfGTJee (ORCPT ); Sat, 20 Jul 2019 05:34:34 -0400 Received: from pd9ef1cb8.dip0.t-ipconnect.de ([217.239.28.184] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1holl5-00006T-Ss; Sat, 20 Jul 2019 11:34:28 +0200 Date: Sat, 20 Jul 2019 11:34:27 +0200 (CEST) From: Thomas Gleixner To: Mike Lothian cc: Masahiro Yamada , Nathan Chancellor , LKML , Linus Torvalds , X86 ML , "H.J. Lu" , Linux Kbuild mailing list , "Theodore Y. Ts'o" , linux-arch@vger.kernel.org Subject: Re: [PATCH v2] kbuild: Fail if gold linker is detected In-Reply-To: Message-ID: References: <20190716170606.GA38406@archlinux-threadripper> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 20 Jul 2019, Mike Lothian wrote: > On Wed, 17 Jul 2019 at 08:57, Thomas Gleixner wrote: > 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 Can you please provide the full config? I have the above set here and it builds just fine. > In light of this - can we drop this patch? No. I'm not going to deal with unsupported tools. Thanks, tglx