Lines Matching refs:section
230 sectionIsDestructor(kernel_section_t * section)
234 result = !strncmp(section->sectname, SECT_MODTERMFUNC,
237 result = result || !strncmp(section->sectname, SECT_DESTRUCTOR,
247 sectionIsConstructor(kernel_section_t * section)
251 result = !strncmp(section->sectname, SECT_MODINITFUNC,
254 result = result || !strncmp(section->sectname, SECT_CONSTRUCTOR,
266 * obtain a destructor section for C++ objects, and call each of the
276 kernel_section_t * section = NULL; // do not free
283 for (section = firstsect(segment);
284 section != 0;
285 section = nextsect(segment, section)) {
287 if (sectionIsDestructor(section)) {
288 structor_t * destructors = (structor_t *)section->addr;
291 int num_destructors = section->size / sizeof(structor_t);
302 section->segname);
307 } /* for (section...) */
448 kernel_section_t * section;
454 for (section = firstsect(segment);
455 section != NULL;
456 section = nextsect(segment, section)) {
458 if (sectionIsConstructor(section)) {
459 structor_t * constructors = (structor_t *)section->addr;
462 int num_constructors = section->size / sizeof(structor_t);
476 kmodInfo->name, section->segname);
484 } /* for (section...) */