1112918Sjeff/*
2112918Sjeff * CDDL HEADER START
3112918Sjeff *
4112918Sjeff * The contents of this file are subject to the terms of the
5112918Sjeff * Common Development and Distribution License, Version 1.0 only
6112918Sjeff * (the "License").  You may not use this file except in compliance
7112918Sjeff * with the License.
8112918Sjeff *
9112918Sjeff * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10112918Sjeff * or http://www.opensolaris.org/os/licensing.
11112918Sjeff * See the License for the specific language governing permissions
12112918Sjeff * and limitations under the License.
13165967Simp *
14112918Sjeff * When distributing Covered Code, include this CDDL HEADER in each
15112918Sjeff * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16112918Sjeff * If applicable, add the following below this CDDL HEADER, with the
17112918Sjeff * fields enclosed by brackets "[]" replaced with your own identifying
18112918Sjeff * information: Portions Copyright [yyyy] [name of copyright owner]
19112918Sjeff *
20112918Sjeff * CDDL HEADER END
21112918Sjeff */
22112918Sjeff/*
23112918Sjeff * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24112918Sjeff * Use is subject to license terms.
25112918Sjeff */
26112918Sjeff
27112918Sjeff#ifndef _UTIL_H
28112918Sjeff#define	_UTIL_H
29112918Sjeff
30112918Sjeff#pragma ident	"%Z%%M%	%I%	%E% SMI"
31144518Sdavidxu
32157457Sdavidxu#include <libelf.h>
33112918Sjeff
34112918Sjeff#ifdef __cplusplus
35157457Sdavidxuextern "C" {
36157457Sdavidxu#endif
37157457Sdavidxu
38144518Sdavidxuextern int findelfsecidx(Elf *, char *);
39112918Sjeff
40112918Sjeffextern void die(char *, ...);
41154703Sdavidxuextern void elfdie(char *, ...);
42154703Sdavidxu
43154130Sdavidxu#if defined(sun)
44112918Sjeffextern const char *progname;
45157457Sdavidxu#endif
46112918Sjeff
47144518Sdavidxu#ifdef __cplusplus
48155329Sdavidxu}
49112918Sjeff#endif
50155329Sdavidxu
51155329Sdavidxu#endif /* _UTIL_H */
52155329Sdavidxu