Re: [PATCH 2/4] module linker script: coalesce function and data sections

From: Denys Vlasenko
Date: Wed Jul 28 2010 - 21:24:53 EST


On Thursday 29 July 2010 02:25, David Howells wrote:
> Denys Vlasenko <vda.linux@xxxxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/