From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:58045 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750996Ab0G2BYm (ORCPT ); Wed, 28 Jul 2010 21:24:42 -0400 From: Denys Vlasenko Subject: Re: [PATCH 2/4] module linker script: coalesce function and data sections Date: Thu, 29 Jul 2010 03:24:36 +0200 References: <1280360876-2571-3-git-send-email-vda.linux@googlemail.com> <1280360876-2571-1-git-send-email-vda.linux@googlemail.com> <29025.1280363105@redhat.com> In-Reply-To: <29025.1280363105@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201007290324.36745.vda.linux@googlemail.com> Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: David Howells Cc: Michal Marek , linux-kbuild , linux-arch@vger.kernel.org, Parisc List , lkml , Sam Ravnborg , Tim Abbott , Tim Bird , James Bottomley , Matt Fleming , Arnd Bergmann , Anders Kaseorg , Andi Kleen , Stephen Rothwell On Thursday 29 July 2010 02:25, David Howells wrote: > Denys Vlasenko wrote: > > > + .data 0 : AT(0) { *(.data .data.[A-Za-z0-9_$^]*) } > > + .bss 0 : AT(0) { *(.bss .bss.[A-Za-z0-9_$^]*) } > > What about .sdata and .sbss sections produced by arches that support small > data sections? linker groups all similarly-named input sections into one output section with the same name, if the name does not match any rule in the linker script. Basically, it should work as if there is a rule: .sbss 0 : AT(0) { *(.sbss) } -- vda