From patchwork Sun Aug 7 20:26:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9266567 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 D43A960754 for ; Sun, 7 Aug 2016 20:26:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B209527B13 for ; Sun, 7 Aug 2016 20:26:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A60B727C0B; Sun, 7 Aug 2016 20:26:28 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 5E57727B13 for ; Sun, 7 Aug 2016 20:26:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750881AbcHGU01 (ORCPT ); Sun, 7 Aug 2016 16:26:27 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:61893 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbcHGU00 (ORCPT ); Sun, 7 Aug 2016 16:26:26 -0400 Received: from wuerfel.localnet ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0MdCE6-1bnc3r1CXS-00IGHj; Sun, 07 Aug 2016 22:26:21 +0200 From: Arnd Bergmann To: linuxppc-dev@lists.ozlabs.org Cc: Alan Modra , Nicholas Piggin , linux-arch@vger.kernel.org, Stephen Rothwell , Nicolas Pitre , linux-kbuild@vger.kernel.org Subject: Re: [PATCH 2/5] kbuild: allow archs to select build for link dead code/data elimination Date: Sun, 07 Aug 2016 22:26:19 +0200 Message-ID: <12986071.MeSB5hmlsH@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-31-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20160807095739.GU20904@bubble.grove.modra.org> References: <1470399123-8455-1-git-send-email-npiggin@gmail.com> <1470399123-8455-3-git-send-email-npiggin@gmail.com> <20160807095739.GU20904@bubble.grove.modra.org> MIME-Version: 1.0 X-Provags-ID: V03:K0:OWda5vm0j+SATaOIF3IJeaMsZ1GbQVlVMamgyrPrYodn36eE+x7 Z6RIMCv1O6CyFFk3femOP5nBhNVeWP7x0yYjwIgKV4kZmlBI7nZ2r5EfBHG2JcAK4zKhCK/ vh0S3GdZk3vA7dcVvYgO2U6XCNSxbNG7rNoswc52EOTLAZAqxLxi0DT1vpcfvel2IuNlj/Z dDRAe+nxHie+G5JSBEfuA== X-UI-Out-Filterresults: notjunk:1; V01:K0:fCLa8IdLfPo=:Bhyr7tcV07KvO+NAD7OoYY y7Ex3XXkCwBNwc9qbUzL8ECaoDq3nP1gbIjzkggADzVCBDDDc0aAKAYl819ZpGWQxJd8upRTC jOWQp2yLwjDEAQ2CgVhoXa66R+xLh0RTpTzf59l8S0b6TX2KPRiuFEjxvyFHDN0G+etmAE2j3 jws/htBeEoDDhs+DA5ut82hXDAatUTUxHQPG1VhDXXcT6C47rlkUQ3kD9AOQIUkolOBCwXhDt xeq9+9zlO5NKG5Eu6nqCDujcDZ031loli0g1VVMhSDObdtthOzaBAXBLz+Z88WHeB0/AsXHjW 8AI43dixFDUEsKcXLqemPTFQwLjHZ58JBNrmnElx12CLTCDjylNb2gKtd3UK3v74Oy1YnwDzt sCiARFXICYFQbt2xosjB7OYiCAON9kxg9lTKpQHFNGr+NZ6+c87ZnTz8xhnSUWOleNidhfN2Z 5QuNY4mKqM+h3wmoOQvJ3vtfXxH6k/FRNm7pL9/aFg9QpeyLkaEDHbbPSkOn69LdXIiRDXPl+ PrH/d8C95Or3Edp6m+kfB/aMCqgyz/cmQDMXPiJd1Sc24zMkcvy3FbbnVKlaCtl75TYTMPRfH Syfg9urzcbu5cgnHMxAiF83SlyJKzW9BDF3UcNQoVXHrmHJT3rGrP0BnFDq8AHTTGTtrFoMVH 0d0jMRfFKYge+ahwAUPDWXHOSFOxos/h6qiCOtLC4aodIwLXSRGy/X1ZIexVeF0H2DYLulDeL pkyBmY11kFux6b2l 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 On Sunday, August 7, 2016 7:27:39 PM CEST Alan Modra wrote: > > If it can, then Nicholas' patch should be: > > *(.text.hot .text.hot.*) *(.text.unlikely .text.unlikely.*) *(.text .text.*) > > If you can't put .text.fixup too far away then you may as well just use > > *(.text .text.*) I tried this version: but that failed to link an allyesconfig kernel because of references from .fixup to .text.*. Trying your version now: *(.text.hot .text.hot.*) *(.text.unlikely .text.unlikely.*) *(.text .text.*) Arnd --- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index b1f8828e9eac..fc210dacac9a 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -438,7 +438,9 @@ * during second ld run in second ld pass when generating System.map */ #define TEXT_TEXT \ ALIGN_FUNCTION(); \ - *(.text.hot .text .text.fixup .text.unlikely .text.*) \ + *(.text.hot .text.hot.*) \ + *(.text.unlikely .text.fixup .text.unlikely.*) \ + *(.text .text.*) \ *(.ref.text) \ MEM_KEEP(init.text) \ MEM_KEEP(exit.text) \