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