Deleted Added
full compact
linker.h (25537) linker.h (31324)
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$
26 * $Id: linker.h,v 1.1 1997/05/07 16:05:45 dfr Exp $
27 */
28
29#ifndef _SYS_LINKER_H_
30#define _SYS_LINKER_H_
31
32#ifdef KERNEL
33
34#define M_LINKER M_TEMP /* XXX */

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

101 TAILQ_ENTRY(linker_class) link; /* list of all file classes */
102 const char* desc; /* description (e.g. "a.out") */
103 void* priv; /* implementation data */
104
105 struct linker_class_ops *ops;
106};
107
108/*
27 */
28
29#ifndef _SYS_LINKER_H_
30#define _SYS_LINKER_H_
31
32#ifdef KERNEL
33
34#define M_LINKER M_TEMP /* XXX */

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

101 TAILQ_ENTRY(linker_class) link; /* list of all file classes */
102 const char* desc; /* description (e.g. "a.out") */
103 void* priv; /* implementation data */
104
105 struct linker_class_ops *ops;
106};
107
108/*
109 * The file representing the currently running kernel. This contains
110 * the global symbol table.
111 */
112linker_file_t linker_kernel_file;
113
114/*
115 * The file which is currently loading. Used to register modules with
116 * the files which contain them.
117 */
109 * The file which is currently loading. Used to register modules with
110 * the files which contain them.
111 */
118linker_file_t linker_current_file;
112extern linker_file_t linker_current_file;
119
120/*
121 * Add a new file class to the linker.
122 */
123int linker_add_class(const char* desc, void* priv,
124 struct linker_class_ops* ops);
125
126/*

--- 81 unchanged lines hidden ---
113
114/*
115 * Add a new file class to the linker.
116 */
117int linker_add_class(const char* desc, void* priv,
118 struct linker_class_ops* ops);
119
120/*

--- 81 unchanged lines hidden ---