Deleted Added
full compact
linker.h (66719) linker.h (78161)
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

--- 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-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

--- 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 * $FreeBSD: head/sys/sys/linker.h 66719 2000-10-06 05:20:02Z jhb $
26 * $FreeBSD: head/sys/sys/linker.h 78161 2001-06-13 10:58:39Z peter $
27 */
28
29#ifndef _SYS_LINKER_H_
30#define _SYS_LINKER_H_
31
32#ifdef _KERNEL
33
34#include <machine/elf.h>

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

134/*
135 * Lookup a symbol in a file. If deps is TRUE, look in dependancies
136 * if not found in file.
137 */
138caddr_t linker_file_lookup_symbol(linker_file_t _file, const char* _name,
139 int _deps);
140
141/*
27 */
28
29#ifndef _SYS_LINKER_H_
30#define _SYS_LINKER_H_
31
32#ifdef _KERNEL
33
34#include <machine/elf.h>

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

134/*
135 * Lookup a symbol in a file. If deps is TRUE, look in dependancies
136 * if not found in file.
137 */
138caddr_t linker_file_lookup_symbol(linker_file_t _file, const char* _name,
139 int _deps);
140
141/*
142 * Lookup a linker set in a file. Return pointers to the first entry,
143 * last + 1, and count of entries. Use: for (p = start; p < stop; p++) {}
144 * void *start is really: "struct yoursetmember ***start;"
145 */
146int linker_file_lookup_set(linker_file_t _file, const char *_name,
147 void *_start, void *_stop, int *_count);
148
149/*
142 * This routine is responsible for finding dependencies of userland
143 * initiated kldload(2)'s of files.
144 */
145int linker_load_dependancies(linker_file_t _lf);
146
147/*
148 * DDB Helpers, tuned specifically for ddb/db_kld.c
149 */

--- 102 unchanged lines hidden ---
150 * This routine is responsible for finding dependencies of userland
151 * initiated kldload(2)'s of files.
152 */
153int linker_load_dependancies(linker_file_t _lf);
154
155/*
156 * DDB Helpers, tuned specifically for ddb/db_kld.c
157 */

--- 102 unchanged lines hidden ---