lkml.org 
[lkml]   [2008]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2008-05-20 00:15    [W:0.060 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site