xref: /onnv-gate/usr/src/cmd/sgs/include/_libelf.h (revision 12792:1f56a791e275)
11698Sab196087 /*
21698Sab196087  * CDDL HEADER START
31698Sab196087  *
41698Sab196087  * The contents of this file are subject to the terms of the
51698Sab196087  * Common Development and Distribution License (the "License").
61698Sab196087  * You may not use this file except in compliance with the License.
71698Sab196087  *
81698Sab196087  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91698Sab196087  * or http://www.opensolaris.org/os/licensing.
101698Sab196087  * See the License for the specific language governing permissions
111698Sab196087  * and limitations under the License.
121698Sab196087  *
131698Sab196087  * When distributing Covered Code, include this CDDL HEADER in each
141698Sab196087  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151698Sab196087  * If applicable, add the following below this CDDL HEADER, with the
161698Sab196087  * fields enclosed by brackets "[]" replaced with your own identifying
171698Sab196087  * information: Portions Copyright [yyyy] [name of copyright owner]
181698Sab196087  *
191698Sab196087  * CDDL HEADER END
201698Sab196087  */
211698Sab196087 
221698Sab196087 /*
2312457SAli.Bahrami@Oracle.COM  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
241698Sab196087  */
251698Sab196087 
261698Sab196087 #ifndef	__LIBELF_H
271698Sab196087 #define	__LIBELF_H
281698Sab196087 
291698Sab196087 /*
301698Sab196087  * Version of libelf.h that supplies definitions for APIs that
311698Sab196087  * are private to the linker package. Includes the standard libelf.h
321698Sab196087  * and then supplements it with the private additions.
331698Sab196087  */
341698Sab196087 
351698Sab196087 #include <libelf.h>
361698Sab196087 #include <gelf.h>
371698Sab196087 
381698Sab196087 #ifdef	__cplusplus
391698Sab196087 extern "C" {
401698Sab196087 #endif
411698Sab196087 
4210809SAli.Bahrami@Sun.COM typedef void _elf_execfill_func_t(void *, off_t, size_t);
4310809SAli.Bahrami@Sun.COM 
4410809SAli.Bahrami@Sun.COM extern void		_elf_execfill(_elf_execfill_func_t *);
4512457SAli.Bahrami@Oracle.COM extern size_t		_elf_getnextoff(Elf *);
4612457SAli.Bahrami@Oracle.COM extern off_t		_elf_getarhdrbase(Elf *);
47*12792SAli.Bahrami@Oracle.COM extern size_t		_elf_getarsymwordsize(Elf *);
481698Sab196087 extern Elf64_Off	_elf_getxoff(Elf_Data *);
4910809SAli.Bahrami@Sun.COM extern GElf_Xword	_gelf_getdyndtflags_1(Elf *);
5010809SAli.Bahrami@Sun.COM extern int		_elf_swap_wrimage(Elf *);
515189Sab196087 extern uint_t		_elf_sys_encoding(void);
521698Sab196087 
531698Sab196087 #ifdef	__cplusplus
541698Sab196087 }
551698Sab196087 #endif
561698Sab196087 
571698Sab196087 #endif	/* __LIBELF_H */
58