From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <201007290324.36745.vda.linux@googlemail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <29025.1280363105@redhat.com> Content-Disposition: inline Sender: linux-parisc-owner@vger.kernel.org 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 List-Id: linux-arch.vger.kernel.org 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