xref: /onnv-gate/usr/src/cmd/sgs/dump/common/dump.h (revision 9273:9a0603d78ad3)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
51976Sab196087  * Common Development and Distribution License (the "License").
61976Sab196087  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
220Sstevel@tonic-gate  *	Copyright (c) 1988 AT&T
230Sstevel@tonic-gate  *	  All Rights Reserved
240Sstevel@tonic-gate  *
250Sstevel@tonic-gate  *
26*9273SAli.Bahrami@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
271976Sab196087  * Use is subject to license terms.
280Sstevel@tonic-gate  */
291976Sab196087 
301976Sab196087 #ifndef	_DUMP_H
311976Sab196087 #define	_DUMP_H
321976Sab196087 
330Sstevel@tonic-gate #include	<sys/elf.h>
340Sstevel@tonic-gate #include	<sys/machelf.h>
350Sstevel@tonic-gate #include	<gelf.h>
360Sstevel@tonic-gate 
37*9273SAli.Bahrami@Sun.COM /*
38*9273SAli.Bahrami@Sun.COM  * DUMP_CONVFMT defines the libconv formatting options we want to use:
39*9273SAli.Bahrami@Sun.COM  *	- Unknown items to be printed as integers using decimal formatting
40*9273SAli.Bahrami@Sun.COM  *	- The "Dump Style" versions of strings.
41*9273SAli.Bahrami@Sun.COM  */
42*9273SAli.Bahrami@Sun.COM #define	DUMP_CONVFMT (CONV_FMT_DECIMAL|CONV_FMT_ALT_DUMP)
43*9273SAli.Bahrami@Sun.COM 
440Sstevel@tonic-gate #define	DATESIZE 60
450Sstevel@tonic-gate 
460Sstevel@tonic-gate typedef struct scntab {
471976Sab196087 	char		*scn_name;
481976Sab196087 	Elf_Scn		*p_sd;
490Sstevel@tonic-gate 	GElf_Shdr	p_shdr;
500Sstevel@tonic-gate } SCNTAB;
510Sstevel@tonic-gate 
521976Sab196087 #endif	/* _DUMP_H */
53