From patchwork Fri Jun 9 05:24:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 9777193 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 957176034B for ; Fri, 9 Jun 2017 05:25:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8821B27F8F for ; Fri, 9 Jun 2017 05:25:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7CACB28546; Fri, 9 Jun 2017 05:25:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16A5227F8F for ; Fri, 9 Jun 2017 05:25:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751501AbdFIFZN (ORCPT ); Fri, 9 Jun 2017 01:25:13 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34896 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751499AbdFIFZM (ORCPT ); Fri, 9 Jun 2017 01:25:12 -0400 Received: by mail-pg0-f68.google.com with SMTP id f127so6662561pgc.2; Thu, 08 Jun 2017 22:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8Km8yOyKbHABee/aRBeD/hNe5mkMbOg4uruiTk26THc=; b=Y47KdQNW48EjvWCfXAglFLZHXwXr3gKWqkcJ/sZomALZhLh9Y8go5AJJR4Q2xcaScu XMkr1DI8CTKotJeY5osyjo7uO2awUBiVMzr1coJz9ccCohEimiu44nGwMN7M90BYfd7m yfHx3GWEu6lTDBDSWxHAkPb+RCfRzudsvXWFjPJnCbOGBPQm6PtaYmMg2BW6uyAbZnmX PLtU6BUK8FLFghJxa4fr7DYw0kL676ijqC9kSePHEtIkvbAsOsZSBJrFxF+FNXCQabay DDwXAEvscOfr3vN9J3IMkAohMrDOB29w7UxjvCi6OTR+E4jDGNmRqPtwgSPQ2Mcdq9cM DsGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8Km8yOyKbHABee/aRBeD/hNe5mkMbOg4uruiTk26THc=; b=ZBV1YmolczYGcLjcOimlqCcpIA8Tl3qxiTdzdZElHW6VKRd91AelV6qcsoW2S4/LI3 o/Fk7hiYJGHsUdhbwgrD6J1sbuYnz9WVpVH/MauUw87ywspiLgLaeNytKOniDz83Aa33 +bGjLKa86Opb2U5cUNg6izhRLsF4GISYSXHZHFbN0miRB5OcQxliLUwWVu3gPPAHD4HR 5LBAcwSsMtDFvnP0TkabySn903Rv4etduHlr4VgNpMXdeTqGU+/U06zg+j3vc1emu7cc +jEBftWimkQQNj5qo1XJRXT0del2uBnFk/XBSvfA6bqeRHjo9D+oCp4eOnIU8tMpogYx rfKA== X-Gm-Message-State: AODbwcAZoRwBOdNw1yDs+jtX6O9ZYXuDckWmpN7XBppRjMpuShJ7cnEe sFHSTRF/Vso2nGG5 X-Received: by 10.84.131.1 with SMTP id 1mr38269432pld.232.1496985911928; Thu, 08 Jun 2017 22:25:11 -0700 (PDT) Received: from roar.au.ibm.com (14-202-185-133.tpgi.com.au. [14.202.185.133]) by smtp.gmail.com with ESMTPSA id h15sm135375pfk.120.2017.06.08.22.25.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 22:25:11 -0700 (PDT) From: Nicholas Piggin To: linux-kbuild@vger.kernel.org, linux-arch@vger.kernel.org Cc: Nicholas Piggin , Masahiro Yamada , Michal Marek , Linus Torvalds , Stephen Rothwell Subject: [PATCH 5/5] kbuild: thin archives make default for all archs Date: Fri, 9 Jun 2017 15:24:17 +1000 Message-Id: <20170609052417.561-6-npiggin@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170609052417.561-1-npiggin@gmail.com> References: <20170609052417.561-1-npiggin@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make thin archives build the default, but keep the config option to allow exemptions if any breakage can't be quickly solved. Signed-off-by: Nicholas Piggin --- Documentation/process/changes.rst | 9 ++++----- arch/Kconfig | 2 +- arch/powerpc/Kconfig | 8 -------- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/Documentation/process/changes.rst b/Documentation/process/changes.rst index e25d63f8c0da..56fd0687bd4a 100644 --- a/Documentation/process/changes.rst +++ b/Documentation/process/changes.rst @@ -31,7 +31,7 @@ you probably needn't concern yourself with isdn4k-utils. ====================== =============== ======================================== GNU C 3.2 gcc --version GNU make 3.81 make --version -binutils 2.12 ld -v +binutils 2.20 ld -v util-linux 2.10o fdformat --version module-init-tools 0.9.10 depmod -V e2fsprogs 1.41.4 e2fsck -V @@ -75,10 +75,9 @@ You will need GNU make 3.81 or later to build the kernel. Binutils -------- -Linux on IA-32 has recently switched from using ``as86`` to using ``gas`` for -assembling the 16-bit boot code, removing the need for ``as86`` to compile -your kernel. This change does, however, mean that you need a recent -release of binutils. +The build system has recently switched to using thin archives (`ar T`) rather +than incremental linking (`ld -r`) for built-in.o intermediate steps. This +requires binutils 2.20 or newer. Perl ---- diff --git a/arch/Kconfig b/arch/Kconfig index 6c00e5b00f8b..3abe581878d6 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -511,7 +511,7 @@ config CC_STACKPROTECTOR_STRONG endchoice config THIN_ARCHIVES - bool + def_bool y help Select this if the architecture wants to use thin archives instead of ld -r to create the built-in.o files. diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index f7c8f9972f61..80d882a78426 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -472,14 +472,6 @@ config MPROFILE_KERNEL depends on PPC64 && CPU_LITTLE_ENDIAN def_bool !DISABLE_MPROFILE_KERNEL -config USE_THIN_ARCHIVES - bool "Build the kernel using thin archives" - default n - select THIN_ARCHIVES - help - Build the kernel using thin archives. - If you're unsure say N. - config IOMMU_HELPER def_bool PPC64