From patchwork Fri Aug 5 16:01:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 656249 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s5WnL4VYGz9t0F for ; Sat, 6 Aug 2016 02:03:34 +1000 (AEST) Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3s5WnL3hC6zDqhR for ; Sat, 6 Aug 2016 02:03:34 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3s5Wm31rpCzDqV6 for ; Sat, 6 Aug 2016 02:02:26 +1000 (AEST) Received: from wuerfel.localnet ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0M0v6Z-1bFxSK3TYt-00v6D3; Fri, 05 Aug 2016 18:01:19 +0200 From: Arnd Bergmann To: linuxppc-dev@lists.ozlabs.org Subject: Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures Date: Fri, 05 Aug 2016 18:01:13 +0200 Message-ID: <2852406.SOgyPXcJfO@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-31-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20160805222625.30627e96@roar.ozlabs.ibm.com> References: <2038522.anQ279eb8I@wuerfel> <20160805222625.30627e96@roar.ozlabs.ibm.com> MIME-Version: 1.0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Mailman-Version: 2.1.22 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Rothwell , "linux-kernel@vger.kernel.org" , Nicholas Piggin , "Luis R. Rodriguez" , linux-next@vger.kernel.org, Paul Mackerras , Fengguang Wu , Guenter Roeck Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Friday, August 5, 2016 10:26:25 PM CEST Nicholas Piggin wrote: > On Fri, 05 Aug 2016 12:17:27 +0200 > Arnd Bergmann wrote: > > and I also get link errors for the .text.fixup section > > for any users of __put_user() in really large kernels: > > net/batman-adv/batman-adv.o:(.text.fixup+0x4): relocation truncated to fit: R_ARM_JUMP24 against `.text.batadv_log_read' > > This may be fixed by fixing the linker script to bring in the new > sections properly (see new patchset). > > If not, then if you can combine the sections rather than have them > consecutive in the output, e.g.,: > > *(.text .text.fixup) > > Rather than > > *(.text) > *(.text.fixup) > > Then the linker has more freedom to rearrange them. I realize it's > not that simple with ARM's .text.fixup, but maybe that helps you > get it to work. This did the trick: It also got much faster again, the link time for an allyesconfig kernel is now 18 minutes instead of 10 hours, but it's still much worse than the 2 minutes I had earlier or the four minutes with the previous patch. Arnd diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 0ec807d69f18..7a3ad269fa23 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -433,7 +433,7 @@ * 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.hot .text .text.* .text.fixup .text.unlikely) \ *(.ref.text) \ MEM_KEEP(init.text) \ MEM_KEEP(exit.text) \