elf_utils.c (288008) | elf_utils.c (288028) |
---|---|
1/* 2 * Copyright (c) 2010 Konstantin Belousov <kib@freebsd.org> 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) 2010 Konstantin Belousov <kib@freebsd.org> 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/lib/libc/gen/elf_utils.c 288008 2015-09-20 03:58:27Z rodrigc $ | 26 * $FreeBSD: head/lib/libc/gen/elf_utils.c 288028 2015-09-20 20:21:49Z rodrigc $ |
27 */ 28 29#include <sys/types.h> 30#include <sys/mman.h> 31#include <sys/resource.h> 32#include <sys/sysctl.h> 33#include <link.h> 34#include <stddef.h> 35 | 27 */ 28 29#include <sys/types.h> 30#include <sys/mman.h> 31#include <sys/resource.h> 32#include <sys/sysctl.h> 33#include <link.h> 34#include <stddef.h> 35 |
36int __elf_phdr_match_addr(struct dl_phdr_info *phdr_info, void *addr); | 36int __elf_phdr_match_addr(struct dl_phdr_info *, void *); |
37void __pthread_map_stacks_exec(void); 38 39int 40__elf_phdr_match_addr(struct dl_phdr_info *phdr_info, void *addr) 41{ 42 const Elf_Phdr *ph; 43 int i; 44 --- 33 unchanged lines hidden --- | 37void __pthread_map_stacks_exec(void); 38 39int 40__elf_phdr_match_addr(struct dl_phdr_info *phdr_info, void *addr) 41{ 42 const Elf_Phdr *ph; 43 int i; 44 --- 33 unchanged lines hidden --- |