/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef __ELFWRAP_H
#define __ELFWRAP_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Local include file for elfwrap.
*/
#include <libelf.h>
#include <alist.h>
#include <_machelf.h>
/*
* Define a target descriptor to hold target specific information.
*/
typedef struct {
} TargDesc_t;
/*
* Define a descriptor for each ELF section being output to the new file.
*/
typedef struct {
} OutSec_t;
/*
* Define a standard section descriptor.
*/
typedef struct {
} StdSec_t;
/*
* Define a descriptor to maintain section information.
*/
typedef struct {
} ObjDesc_t;
/*
* Define all external interfaces.
*/
ObjDesc_t *);
ObjDesc_t *);
#if defined(lint)
extern void target_init(TargDesc_t *);
#else
extern void target_init_sparc(TargDesc_t *);
extern void target_init_sparcv9(TargDesc_t *);
extern void target_init_i386(TargDesc_t *);
extern void target_init_amd64(TargDesc_t *);
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /* __ELFWRAP_H */