Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_linker.c
Show First 20 Lines • Show All 607 Lines • ▼ Show 20 Lines | linker_make_file(const char *pathname, linker_class_t lc) | ||||
filename = linker_basename(pathname); | filename = linker_basename(pathname); | ||||
KLD_DPF(FILE, ("linker_make_file: new file, filename='%s' for pathname='%s'\n", filename, pathname)); | KLD_DPF(FILE, ("linker_make_file: new file, filename='%s' for pathname='%s'\n", filename, pathname)); | ||||
lf = (linker_file_t)kobj_create((kobj_class_t)lc, M_LINKER, M_WAITOK); | lf = (linker_file_t)kobj_create((kobj_class_t)lc, M_LINKER, M_WAITOK); | ||||
if (lf == NULL) | if (lf == NULL) | ||||
return (NULL); | return (NULL); | ||||
lf->ctors_addr = 0; | lf->ctors_addr = 0; | ||||
lf->ctors_size = 0; | lf->ctors_size = 0; | ||||
lf->dtors_addr = 0; | |||||
lf->dtors_size = 0; | |||||
lf->refs = 1; | lf->refs = 1; | ||||
lf->userrefs = 0; | lf->userrefs = 0; | ||||
lf->flags = 0; | lf->flags = 0; | ||||
lf->filename = strdup(filename, M_LINKER); | lf->filename = strdup(filename, M_LINKER); | ||||
lf->pathname = strdup(pathname, M_LINKER); | lf->pathname = strdup(pathname, M_LINKER); | ||||
LINKER_GET_NEXT_FILE_ID(lf->id); | LINKER_GET_NEXT_FILE_ID(lf->id); | ||||
lf->ndeps = 0; | lf->ndeps = 0; | ||||
lf->deps = NULL; | lf->deps = NULL; | ||||
▲ Show 20 Lines • Show All 1,703 Lines • Show Last 20 Lines |