/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _GELF_H
#define _GELF_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/feature_tests.h>
#include <libelf.h>
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(_INT64_TYPE)
#error "64-bit integer types are required by gelf."
#endif
/*
* Class-independent ELF API for Elf utilities. This is
* for manipulating Elf32 and Elf64 specific information
* in a format common to both classes.
*/
/*
* The processing of versioning information can stay the
* same because both the Elf32 and Elf64 structures are
* of equal sizes.
*/
/*
* move.m_info is encoded using the 64bit fields in Gelf.
*/
/*
* sym.st_info field is same size for Elf32 and Elf64.
*/
/*
* Elf64 r_info may have data field in type id's word,
* so GELF_R_TYPE is defined as ELF64_R_TYPE_ID in order
* to isolate the proper bits for the true type id.
*/
int gelf_getclass(Elf*);
unsigned long gelf_newehdr(Elf *, int);
Elf32_Word *);
long gelf_checksum(Elf *);
#ifdef __cplusplus
}
#endif
#endif /* _GELF_H */