Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751222AbdCQJRl (ORCPT ); Fri, 17 Mar 2017 05:17:41 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34664 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbdCQJRk (ORCPT ); Fri, 17 Mar 2017 05:17:40 -0400 Date: Fri, 17 Mar 2017 19:47:33 +1030 From: Alan Modra To: Arnd Bergmann Cc: Nicolas Pitre , Nicholas Piggin , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [EXPERIMENTAL, v2] enable thin archives and --gc-sections on ARM Message-ID: <20170317091733.GT4983@bubble.grove.modra.org> References: <20170315165109.3451216-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170315165109.3451216-1-arnd@arndb.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1016 Lines: 35 On Wed, Mar 15, 2017 at 05:50:00PM +0100, Arnd Bergmann wrote: > I'm still build testing with an experimental change to enable > thin architeves and --gc-sections on ARM, which should bring > multiple benefits > > - improve build times > - allow 'allyesconfig' to succeed without exceeding the > section size when linking drivers/built-in.o > - reduce the kernel image size > > However, I have now run into a build error binutils commit > f02cb05 ("Always descend into output section statements in > lang_do_assignments") in binutils-2.28 and later: > > no __ex_table in file: vmlinux > > Any idea what's going wrong here? I presume you checked that section really had disappeared? > __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { > __start___ex_table = .; > #ifdef CONFIG_MMU > - *(__ex_table) > + KEEP(*(__ex_table)) > #endif > __stop___ex_table = .; > } I think that if CONFIG_MMU is not defined, then ld will remove the empty section. -- Alan Modra Australia Development Lab, IBM