kern_linker.c (e266a0f7f001c7886eab56d8c058d92d87010400) | kern_linker.c (9e575fadf491152fb3445d4837d49a9cb87dd6e2) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1997-2000 Doug Rabson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 599 unchanged lines hidden (view full) --- 608 filename = linker_basename(pathname); 609 610 KLD_DPF(FILE, ("linker_make_file: new file, filename='%s' for pathname='%s'\n", filename, pathname)); 611 lf = (linker_file_t)kobj_create((kobj_class_t)lc, M_LINKER, M_WAITOK); 612 if (lf == NULL) 613 return (NULL); 614 lf->ctors_addr = 0; 615 lf->ctors_size = 0; | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1997-2000 Doug Rabson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 599 unchanged lines hidden (view full) --- 608 filename = linker_basename(pathname); 609 610 KLD_DPF(FILE, ("linker_make_file: new file, filename='%s' for pathname='%s'\n", filename, pathname)); 611 lf = (linker_file_t)kobj_create((kobj_class_t)lc, M_LINKER, M_WAITOK); 612 if (lf == NULL) 613 return (NULL); 614 lf->ctors_addr = 0; 615 lf->ctors_size = 0; |
616 lf->dtors_addr = 0; 617 lf->dtors_size = 0; |
|
616 lf->refs = 1; 617 lf->userrefs = 0; 618 lf->flags = 0; 619 lf->filename = strdup(filename, M_LINKER); 620 lf->pathname = strdup(pathname, M_LINKER); 621 LINKER_GET_NEXT_FILE_ID(lf->id); 622 lf->ndeps = 0; 623 lf->deps = NULL; --- 1703 unchanged lines hidden --- | 618 lf->refs = 1; 619 lf->userrefs = 0; 620 lf->flags = 0; 621 lf->filename = strdup(filename, M_LINKER); 622 lf->pathname = strdup(pathname, M_LINKER); 623 LINKER_GET_NEXT_FILE_ID(lf->id); 624 lf->ndeps = 0; 625 lf->deps = NULL; --- 1703 unchanged lines hidden --- |