Messages in this thread | | | From | Rusty Russell <> | Subject | Re: [PATCH 1/4] kernel: constructor support | Date | Wed, 4 Feb 2009 13:24:29 +1030 |
| |
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.
| |