1*d51e9074Sab /*
2*d51e9074Sab  * CDDL HEADER START
3*d51e9074Sab  *
4*d51e9074Sab  * The contents of this file are subject to the terms of the
5*d51e9074Sab  * Common Development and Distribution License (the "License").
6*d51e9074Sab  * You may not use this file except in compliance with the License.
7*d51e9074Sab  *
8*d51e9074Sab  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*d51e9074Sab  * or http://www.opensolaris.org/os/licensing.
10*d51e9074Sab  * See the License for the specific language governing permissions
11*d51e9074Sab  * and limitations under the License.
12*d51e9074Sab  *
13*d51e9074Sab  * When distributing Covered Code, include this CDDL HEADER in each
14*d51e9074Sab  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*d51e9074Sab  * If applicable, add the following below this CDDL HEADER, with the
16*d51e9074Sab  * fields enclosed by brackets "[]" replaced with your own identifying
17*d51e9074Sab  * information: Portions Copyright [yyyy] [name of copyright owner]
18*d51e9074Sab  *
19*d51e9074Sab  * CDDL HEADER END
20*d51e9074Sab  */
21*d51e9074Sab /*
22*d51e9074Sab  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*d51e9074Sab  * Use is subject to license terms.
24*d51e9074Sab  */
25*d51e9074Sab 
26*d51e9074Sab #ifndef	_PSYMTAB_MACHELF_H
27*d51e9074Sab #define	_PSYMTAB_MACHELF_H
28*d51e9074Sab 
29*d51e9074Sab #ifdef	__cplusplus
30*d51e9074Sab extern "C" {
31*d51e9074Sab #endif
32*d51e9074Sab 
33*d51e9074Sab 
34*d51e9074Sab extern Elf *fake_elf32(struct ps_prochandle *P, file_info_t *fptr,
35*d51e9074Sab     uintptr_t addr, Elf32_Ehdr *ehdr, uint_t phnum, Elf32_Phdr *phdr);
36*d51e9074Sab #ifdef _LP64
37*d51e9074Sab extern Elf *fake_elf64(struct ps_prochandle *P, file_info_t *fptr,
38*d51e9074Sab     uintptr_t addr, Elf64_Ehdr *ehdr, uint_t phnum, Elf64_Phdr *phdr);
39*d51e9074Sab #endif
40*d51e9074Sab 
41*d51e9074Sab 
42*d51e9074Sab #ifdef	__cplusplus
43*d51e9074Sab }
44*d51e9074Sab #endif
45*d51e9074Sab 
46*d51e9074Sab #endif	/* _PSYMTAB_MACHELF_H */
47