1178525Sjb/*
2178525Sjb * CDDL HEADER START
3178525Sjb *
4178525Sjb * The contents of this file are subject to the terms of the
5178525Sjb * Common Development and Distribution License, Version 1.0 only
6178525Sjb * (the "License").  You may not use this file except in compliance
7178525Sjb * with the License.
8178525Sjb *
9178525Sjb * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10178525Sjb * or http://www.opensolaris.org/os/licensing.
11178525Sjb * See the License for the specific language governing permissions
12178525Sjb * and limitations under the License.
13178525Sjb *
14178525Sjb * When distributing Covered Code, include this CDDL HEADER in each
15178525Sjb * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16178525Sjb * If applicable, add the following below this CDDL HEADER, with the
17178525Sjb * fields enclosed by brackets "[]" replaced with your own identifying
18178525Sjb * information: Portions Copyright [yyyy] [name of copyright owner]
19178525Sjb *
20178525Sjb * CDDL HEADER END
21178525Sjb */
22178525Sjb/*
23178525Sjb * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24178525Sjb * Use is subject to license terms.
25178525Sjb */
26178525Sjb
27178525Sjb#ifndef _UTIL_H
28178525Sjb#define	_UTIL_H
29178525Sjb
30178525Sjb#pragma ident	"%Z%%M%	%I%	%E% SMI"
31178525Sjb
32178525Sjb#include <libelf.h>
33178525Sjb
34178525Sjb#ifdef __cplusplus
35178525Sjbextern "C" {
36178525Sjb#endif
37178525Sjb
38178525Sjbextern int findelfsecidx(Elf *, char *);
39178525Sjb
40178525Sjbextern void die(char *, ...);
41178525Sjbextern void elfdie(char *, ...);
42178525Sjb
43277300Ssmh#ifdef illumos
44178525Sjbextern const char *progname;
45178540Sjb#endif
46178525Sjb
47178525Sjb#ifdef __cplusplus
48178525Sjb}
49178525Sjb#endif
50178525Sjb
51178525Sjb#endif /* _UTIL_H */
52