kern_linker.c (44173) | kern_linker.c (44549) |
---|---|
1/*- 2 * Copyright (c) 1997 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1997 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $Id: kern_linker.c,v 1.26 1999/02/16 10:49:48 dfr Exp $ | 26 * $Id: kern_linker.c,v 1.27 1999/02/20 21:22:00 dfr Exp $ |
27 */ 28 29#include "opt_ddb.h" 30 31#include <sys/param.h> 32#include <sys/kernel.h> 33#include <sys/systm.h> 34#include <sys/malloc.h> --- 266 unchanged lines hidden (view full) --- 301 error = lc->ops->load_file(filename, &lf); /* Then try without */ 302 /* 303 * If we got something other than ENOENT, then it exists but we cannot 304 * load it for some other reason. 305 */ 306 if (error != ENOENT) 307 foundfile = 1; 308 if (lf) { | 27 */ 28 29#include "opt_ddb.h" 30 31#include <sys/param.h> 32#include <sys/kernel.h> 33#include <sys/systm.h> 34#include <sys/malloc.h> --- 266 unchanged lines hidden (view full) --- 301 error = lc->ops->load_file(filename, &lf); /* Then try without */ 302 /* 303 * If we got something other than ENOENT, then it exists but we cannot 304 * load it for some other reason. 305 */ 306 if (error != ENOENT) 307 foundfile = 1; 308 if (lf) { |
309 linker_file_sysinit(lf); | |
310 linker_file_register_sysctls(lf); | 309 linker_file_register_sysctls(lf); |
310 linker_file_sysinit(lf); |
|
311 312 *result = lf; 313 error = 0; 314 goto out; 315 } 316 } 317 /* 318 * Less than ideal, but tells the user whether it failed to load or --- 743 unchanged lines hidden --- | 311 312 *result = lf; 313 error = 0; 314 goto out; 315 } 316 } 317 /* 318 * Less than ideal, but tells the user whether it failed to load or --- 743 unchanged lines hidden --- |