lkml.org 
[lkml]   [2009]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 1/4] kernel: constructor support
Date
On Tuesday 03 February 2009 23:16:33 Peter Oberparleiter wrote:
> From: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
>
> Call constructors (gcc-generated initcall-like functions) during
> kernel start and module load. Constructors are e.g. used for gcov data
> initialization.
...
> +#ifdef CONFIG_CONSTRUCTORS
> + mod->ctors = section_objs(hdr, sechdrs, secstrings, "ctors",
> + sizeof(*mod->ctors), &mod->num_ctors);
> +#endif

This looks horribly like untested code: shouldn't that be ".ctors"?

Rusty.


\
 
 \ /
  Last update: 2009-02-04 03:57    [W:0.138 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site