rtld.h (116557) | rtld.h (116558) |
---|---|
1/*- 2 * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra. 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 --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * | 1/*- 2 * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra. 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 --- 8 unchanged lines hidden (view full) --- 17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/libexec/rtld-elf/rtld.h 116557 2003-06-19 02:39:37Z mdodd $ | 25 * $FreeBSD: head/libexec/rtld-elf/rtld.h 116558 2003-06-19 02:42:04Z mdodd $ |
26 */ 27 28#ifndef RTLD_H /* { */ 29#define RTLD_H 1 30 31#include <machine/elf.h> 32#include <sys/types.h> 33#include <sys/queue.h> --- 150 unchanged lines hidden (view full) --- 184extern void *xcalloc(size_t); 185extern void *xmalloc(size_t); 186extern char *xstrdup(const char *); 187extern Elf_Addr _GLOBAL_OFFSET_TABLE_[]; 188 189/* 190 * Function declarations. 191 */ | 26 */ 27 28#ifndef RTLD_H /* { */ 29#define RTLD_H 1 30 31#include <machine/elf.h> 32#include <sys/types.h> 33#include <sys/queue.h> --- 150 unchanged lines hidden (view full) --- 184extern void *xcalloc(size_t); 185extern void *xmalloc(size_t); 186extern char *xstrdup(const char *); 187extern Elf_Addr _GLOBAL_OFFSET_TABLE_[]; 188 189/* 190 * Function declarations. 191 */ |
192int do_copy_relocations(Obj_Entry *); | |
193unsigned long elf_hash(const char *); 194const Elf_Sym *find_symdef(unsigned long, const Obj_Entry *, 195 const Obj_Entry **, bool, SymCache *); 196void init_pltgot(Obj_Entry *); 197void lockdflt_init(void); 198void obj_free(Obj_Entry *); 199Obj_Entry *obj_new(void); | 192unsigned long elf_hash(const char *); 193const Elf_Sym *find_symdef(unsigned long, const Obj_Entry *, 194 const Obj_Entry **, bool, SymCache *); 195void init_pltgot(Obj_Entry *); 196void lockdflt_init(void); 197void obj_free(Obj_Entry *); 198Obj_Entry *obj_new(void); |
200int reloc_non_plt(Obj_Entry *, Obj_Entry *); 201int reloc_plt(Obj_Entry *); 202int reloc_jmpslots(Obj_Entry *); | |
203void _rtld_bind_start(void); 204const Elf_Sym *symlook_obj(const char *, unsigned long, 205 const Obj_Entry *, bool); 206 | 199void _rtld_bind_start(void); 200const Elf_Sym *symlook_obj(const char *, unsigned long, 201 const Obj_Entry *, bool); 202 |
203/* 204 * MD function declarations. 205 */ 206int do_copy_relocations(Obj_Entry *); 207int reloc_non_plt(Obj_Entry *, Obj_Entry *); 208int reloc_plt(Obj_Entry *); 209int reloc_jmpslots(Obj_Entry *); 210 |
|
207#endif /* } */ | 211#endif /* } */ |