dlfcn.c (211705) | dlfcn.c (217154) |
---|---|
1/*- 2 * Copyright (c) 1998 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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998 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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/lib/libc/gen/dlfcn.c 211705 2010-08-23 15:27:03Z kib $"); | 28__FBSDID("$FreeBSD: head/lib/libc/gen/dlfcn.c 217154 2011-01-08 17:13:43Z kib $"); |
29 30/* 31 * Linkage to services provided by the dynamic linker. 32 */ | 29 30/* 31 * Linkage to services provided by the dynamic linker. 32 */ |
33#include <sys/mman.h> |
|
33#include <dlfcn.h> 34#include <link.h> 35#include <stddef.h> 36 37static char sorry[] = "Service unavailable"; 38 39/* 40 * For ELF, the dynamic linker directly resolves references to its --- 119 unchanged lines hidden (view full) --- 160 161#pragma weak _rtld_addr_phdr 162int 163_rtld_addr_phdr(const void *addr, struct dl_phdr_info *phdr_info) 164{ 165 166 return (0); 167} | 34#include <dlfcn.h> 35#include <link.h> 36#include <stddef.h> 37 38static char sorry[] = "Service unavailable"; 39 40/* 41 * For ELF, the dynamic linker directly resolves references to its --- 119 unchanged lines hidden (view full) --- 161 162#pragma weak _rtld_addr_phdr 163int 164_rtld_addr_phdr(const void *addr, struct dl_phdr_info *phdr_info) 165{ 166 167 return (0); 168} |
169 170#pragma weak _rtld_get_stack_prot 171int 172_rtld_get_stack_prot(void) 173{ 174 175 return (PROT_EXEC | PROT_READ | PROT_WRITE); 176} 177 |
|