Denys Vlasenko <vda.linux@xxxxxxxxxxxxxx> wrote: > The purpose of these patches is to make kernel buildable > with "gcc -ffunction-sections -fdata-sections". > > The problem is that with -ffunction-sections -fdata-sections gcc > creates sections like .text.head and .data.nosave > whenever someone has innocuous code like this: > > static void head(...) {...} > > or this: > > int f(...) { static int nosave; ... } > > somewhere in the kernel. > > Kernel linker script is confused by such names and puts these sections > in wrong places. > > This patch renames all "magic" section names used by kernel > to not have this format, eliminating the possibility of such collisions. > > Signed-off-by: Denys Vlasenko <vda.linux@xxxxxxxxxxxxxx> Acked-by: David Howells <dhowells@xxxxxxxxxx> [FRV and MN10300] -- To unsubscribe from this list: send the line "unsubscribe linux-embedded" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html