Messages in this thread | | | Date | Mon, 19 May 2008 15:06:40 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH 1/7] kernel: call constructors |
| |
On Mon, 19 May 2008 10:43:14 +0200 Peter Oberparleiter <peter.oberparleiter@de.ibm.com> wrote:
> From: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> > > 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@de.ibm.com> > --- > 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
| |