linker.h (43185) | linker.h (43301) |
---|---|
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: linker.h,v 1.11 1998/11/11 13:04:40 peter Exp $ | 26 * $Id: linker.h,v 1.12 1999/01/25 08:42:24 dfr Exp $ |
27 */ 28 29#ifndef _SYS_LINKER_H_ 30#define _SYS_LINKER_H_ 31 32#ifdef KERNEL 33 34#include <machine/elf.h> 35 36#ifdef MALLOC_DECLARE 37MALLOC_DECLARE(M_LINKER); 38#endif 39 40/* 41 * Object representing a file which has been loaded by the linker. 42 */ 43typedef struct linker_file* linker_file_t; 44typedef TAILQ_HEAD(, linker_file) linker_file_list_t; 45 | 27 */ 28 29#ifndef _SYS_LINKER_H_ 30#define _SYS_LINKER_H_ 31 32#ifdef KERNEL 33 34#include <machine/elf.h> 35 36#ifdef MALLOC_DECLARE 37MALLOC_DECLARE(M_LINKER); 38#endif 39 40/* 41 * Object representing a file which has been loaded by the linker. 42 */ 43typedef struct linker_file* linker_file_t; 44typedef TAILQ_HEAD(, linker_file) linker_file_list_t; 45 |
46typedef caddr_t linker_sym_t; /* opaque symbol */ | 46typedef caddr_t linker_sym_t; /* opaque symbol */ 47typedef c_caddr_t c_linker_sym_t; /* const opaque symbol */ |
47 48/* 49 * expanded out linker_sym_t 50 */ 51typedef struct linker_symval { 52 const char* name; 53 caddr_t value; 54 size_t size; --- 239 unchanged lines hidden --- | 48 49/* 50 * expanded out linker_sym_t 51 */ 52typedef struct linker_symval { 53 const char* name; 54 caddr_t value; 55 size_t size; --- 239 unchanged lines hidden --- |