xref: /onnv-gate/usr/src/cmd/sgs/dump/common/dump.h (revision 1976:f0691a145b7e)
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
5*1976Sab196087  * Common Development and Distribution License (the "License").
6*1976Sab196087  * 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*1976Sab196087  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
27*1976Sab196087  * Use is subject to license terms.
280Sstevel@tonic-gate  */
29*1976Sab196087 
30*1976Sab196087 #ifndef	_DUMP_H
31*1976Sab196087 #define	_DUMP_H
32*1976Sab196087 
330Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
340Sstevel@tonic-gate 
350Sstevel@tonic-gate #include	<sys/elf.h>
360Sstevel@tonic-gate #include	<sys/machelf.h>
370Sstevel@tonic-gate #include	<gelf.h>
380Sstevel@tonic-gate 
390Sstevel@tonic-gate #define	DATESIZE 60
400Sstevel@tonic-gate 
410Sstevel@tonic-gate typedef struct scntab {
42*1976Sab196087 	char		*scn_name;
43*1976Sab196087 	Elf_Scn		*p_sd;
440Sstevel@tonic-gate 	GElf_Shdr	p_shdr;
450Sstevel@tonic-gate } SCNTAB;
460Sstevel@tonic-gate 
47*1976Sab196087 #endif	/* _DUMP_H */
48