nlist.c (90045) | nlist.c (108533) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. 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 --- 21 unchanged lines hidden (view full) --- 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#if defined(LIBC_SCCS) && !defined(lint) 35static char sccsid[] = "@(#)nlist.c 8.1 (Berkeley) 6/4/93"; 36#endif /* LIBC_SCCS and not lint */ 37#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. 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 --- 21 unchanged lines hidden (view full) --- 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#if defined(LIBC_SCCS) && !defined(lint) 35static char sccsid[] = "@(#)nlist.c 8.1 (Berkeley) 6/4/93"; 36#endif /* LIBC_SCCS and not lint */ 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/lib/libc/gen/nlist.c 90045 2002-02-01 01:32:19Z obrien $"); | 38__FBSDID("$FreeBSD: head/lib/libc/gen/nlist.c 108533 2003-01-01 18:49:04Z schweikh $"); |
39 40#include "namespace.h" 41#include <sys/param.h> 42#include <sys/mman.h> 43#include <sys/stat.h> 44#include <sys/file.h> 45 46#include <errno.h> --- 156 unchanged lines hidden (view full) --- 203 204#ifdef _NLIST_DO_ELF 205static void elf_sym_to_nlist(struct nlist *, Elf_Sym *, Elf_Shdr *, int); 206 207/* 208 * __elf_is_okay__ - Determine if ehdr really 209 * is ELF and valid for the target platform. 210 * | 39 40#include "namespace.h" 41#include <sys/param.h> 42#include <sys/mman.h> 43#include <sys/stat.h> 44#include <sys/file.h> 45 46#include <errno.h> --- 156 unchanged lines hidden (view full) --- 203 204#ifdef _NLIST_DO_ELF 205static void elf_sym_to_nlist(struct nlist *, Elf_Sym *, Elf_Shdr *, int); 206 207/* 208 * __elf_is_okay__ - Determine if ehdr really 209 * is ELF and valid for the target platform. 210 * |
211 * WARNING: This is NOT a ELF ABI function and 212 * as such it's use should be restricted. | 211 * WARNING: This is NOT an ELF ABI function and 212 * as such its use should be restricted. |
213 */ 214int 215__elf_is_okay__(ehdr) 216 Elf_Ehdr *ehdr; 217{ 218 int retval = 0; 219 /* 220 * We need to check magic, class size, endianess, --- 196 unchanged lines hidden --- | 213 */ 214int 215__elf_is_okay__(ehdr) 216 Elf_Ehdr *ehdr; 217{ 218 int retval = 0; 219 /* 220 * We need to check magic, class size, endianess, --- 196 unchanged lines hidden --- |