Re: [PATCH 1/3] build system: section garbage collection - rename sections

From: Matthieu CASTET
Date: Tue Jun 24 2008 - 03:30:15 EST


Hi,

Denys Vlasenko <vda.linux <at> googlemail.com> writes:

>
> On Saturday 24 November 2007 15:14, Denys Vlasenko wrote:
> > 1.fixname:
> > Rename all special sections with names like .text.xxxx, .data.xxxx and
> > .rodata.xxxx to .xxxx.text/data/rodata. This makes it possible to
> > not mix up these sections with gcc-generated ones
> > when gcc -ffunction-sections -fdata-sections is used.
> > .bss.xxxx cannot be treated this way, because for section names
> > linke .xxxx.bss gcc won't create section with correct attribute.
> > Thus .bss.xxxxx sections are renamed .bss.k.xxxxx.
>
> Signed-off-by: Denys Vlasenko <vda.linux <at> googlemail.com>
Why not rename all the section to .type.k.xxxxx ?
This will be more consistent between bss and other section. Also I find it
cleaner to have the section type first.

Matthieu


--
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/