Re: [PATCH 1/7] kernel: call constructors
From: Andrew Morton
Date: Mon May 19 2008 - 18:11:57 EST
On Mon, 19 May 2008 10:43:14 +0200
Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx> wrote:
> From: Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx>
>
> Call constructors during kernel init and module load. Required by the
> gcov profiling infrastructure: gcc's profiling code uses constructors
> to register profiling data structures.
>
> Signed-off-by: Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx>
> ---
> arch/powerpc/kernel/vmlinux.lds.S | 3 +++
> include/asm-generic/sections.h | 1 +
> include/asm-generic/vmlinux.lds.h | 5 +++++
> include/linux/init.h | 2 ++
> include/linux/module.h | 3 +++
> init/main.c | 10 ++++++++++
> kernel/module.c | 13 +++++++++++++
What happens with architectures which do not use
include/asm-generic/vmlinux.lds.h? A quicky grep points at
arch/m68k/kernel/vmlinux.lds.S
arch/sh/kernel/vmlinux.lds.S
arch/um/kernel/vmlinux.lds.S
--
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/