linker.h (159797) | linker.h (159800) |
---|---|
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 159797 2006-06-20 20:37:17Z jhb $ | 26 * $FreeBSD: head/sys/sys/linker.h 159800 2006-06-20 20:41:15Z jhb $ |
27 */ 28 29#ifndef _SYS_LINKER_H_ 30#define _SYS_LINKER_H_ 31 32#ifdef _KERNEL 33 34#include <machine/elf.h> --- 83 unchanged lines hidden (view full) --- 118/* 119 * Iterate over all of the currently loaded linker files calling the 120 * predicate function while the function returns 0. Returns the value 121 * returned by the last predicate function. 122 */ 123int linker_file_foreach(linker_predicate_t *_predicate, void *_context); 124 125/* | 27 */ 28 29#ifndef _SYS_LINKER_H_ 30#define _SYS_LINKER_H_ 31 32#ifdef _KERNEL 33 34#include <machine/elf.h> --- 83 unchanged lines hidden (view full) --- 118/* 119 * Iterate over all of the currently loaded linker files calling the 120 * predicate function while the function returns 0. Returns the value 121 * returned by the last predicate function. 122 */ 123int linker_file_foreach(linker_predicate_t *_predicate, void *_context); 124 125/* |
126 * Find a currently loaded file given its filename. 127 */ 128linker_file_t linker_find_file_by_name(const char* _filename); 129 130/* 131 * Find a currently loaded file given its file id. 132 */ 133linker_file_t linker_find_file_by_id(int _fileid); 134 135/* | |
136 * Called from a class handler when a file is laoded. 137 */ 138linker_file_t linker_make_file(const char* _filename, linker_class_t _cls); 139 140/* 141 * Unload a file, freeing up memory. 142 */ 143int linker_file_unload(linker_file_t _file, int flags); --- 162 unchanged lines hidden --- | 126 * Called from a class handler when a file is laoded. 127 */ 128linker_file_t linker_make_file(const char* _filename, linker_class_t _cls); 129 130/* 131 * Unload a file, freeing up memory. 132 */ 133int linker_file_unload(linker_file_t _file, int flags); --- 162 unchanged lines hidden --- |