[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080519150640.c61dca49.akpm@linux-foundation.org>
Date:	Mon, 19 May 2008 15:06:40 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Peter Oberparleiter <peter.oberparleiter@...ibm.com>
Cc:	linux-kernel@...r.kernel.org, ltp-coverage@...ts.sourceforge.net,
	sam@...nborg.org, rusty@...tcorp.com.au,
	oberparleiter@...glemail.com
Subject: Re: [PATCH 1/7] kernel: call constructors
On Mon, 19 May 2008 10:43:14 +0200
Peter Oberparleiter <peter.oberparleiter@...ibm.com> wrote:
> From: Peter Oberparleiter <peter.oberparleiter@...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@...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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists