kern_linker.c (246e7a2b6494cd991b08ac669ed761ecea0cc98c) kern_linker.c (0067051fe7ec2efffec5f50f52bbc5699f955d64)
1/*-
2 * Copyright (c) 1997-2000 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 559 unchanged lines hidden (view full) ---

568 if (!cold)
569 sx_assert(&kld_sx, SA_XLOCKED);
570 filename = linker_basename(pathname);
571
572 KLD_DPF(FILE, ("linker_make_file: new file, filename='%s' for pathname='%s'\n", filename, pathname));
573 lf = (linker_file_t)kobj_create((kobj_class_t)lc, M_LINKER, M_WAITOK);
574 if (lf == NULL)
575 return (NULL);
1/*-
2 * Copyright (c) 1997-2000 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 559 unchanged lines hidden (view full) ---

568 if (!cold)
569 sx_assert(&kld_sx, SA_XLOCKED);
570 filename = linker_basename(pathname);
571
572 KLD_DPF(FILE, ("linker_make_file: new file, filename='%s' for pathname='%s'\n", filename, pathname));
573 lf = (linker_file_t)kobj_create((kobj_class_t)lc, M_LINKER, M_WAITOK);
574 if (lf == NULL)
575 return (NULL);
576 lf->ctors_addr = 0;
577 lf->ctors_size = 0;
576 lf->refs = 1;
577 lf->userrefs = 0;
578 lf->flags = 0;
579 lf->filename = strdup(filename, M_LINKER);
580 lf->pathname = strdup(pathname, M_LINKER);
581 LINKER_GET_NEXT_FILE_ID(lf->id);
582 lf->ndeps = 0;
583 lf->deps = NULL;

--- 1559 unchanged lines hidden ---
578 lf->refs = 1;
579 lf->userrefs = 0;
580 lf->flags = 0;
581 lf->filename = strdup(filename, M_LINKER);
582 lf->pathname = strdup(pathname, M_LINKER);
583 LINKER_GET_NEXT_FILE_ID(lf->id);
584 lf->ndeps = 0;
585 lf->deps = NULL;

--- 1559 unchanged lines hidden ---