reloc_defs.h revision ba2be53024c0b999e74ba9adcd7d80fec5df8c57
/*
* 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 _RELOC_DEFS_DOT_H
#define _RELOC_DEFS_DOT_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Definitions used by the relocation common code.
*/
/*
* Structure used to build the reloc_table[]
*/
typedef struct {
} Rel_entry;
/*
* Flags for reloc_entry->re_flags
*/
#define FLG_RE_NOTREL 0x00000000
#define FLG_RE_PCREL 0x00000010
#define FLG_RE_PLTREL 0x00000020
/* required for non- */
/* fixed objects */
/* a REGISTER by OLO10 */
/* locally */
/*
* Relocation table and macros for testing relocation table flags.
*/
#define RELTAB_IS_PLT(X, _reltab) \
#define RELTAB_IS_GOT_RELATIVE(X, _reltab) \
#define RELTAB_IS_GOT_PC(X, _reltab) \
#define RELTAB_IS_GOTPCREL(X, _reltab) \
#define RELTAB_IS_GOT_BASED(X, _reltab) \
#define RELTAB_IS_GOT_OPINS(X, _reltab) \
#define RELTAB_IS_GOT_REQUIRED(X, _reltab) \
FLG_RE_GOTPC | FLG_RE_GOTOPINS)) != 0)
#define RELTAB_IS_PC_RELATIVE(X, _reltab) \
#define RELTAB_IS_ADD_RELATIVE(X, _reltab) \
#define RELTAB_IS_REGISTER(X, _reltab) \
#define RELTAB_IS_NOTSUP(X, _reltab) \
#define RELTAB_IS_SEG_RELATIVE(X, _reltab) \
#define RELTAB_IS_EXTOFFSET(X, _reltab) \
#define RELTAB_IS_SEC_RELATIVE(X, _reltab) \
#define RELTAB_IS_TLS_INS(X, _reltab) \
#define RELTAB_IS_TLS_GD(X, _reltab) \
#define RELTAB_IS_TLS_LD(X, _reltab) \
#define RELTAB_IS_TLS_IE(X, _reltab) \
#define RELTAB_IS_TLS_LE(X, _reltab) \
#define RELTAB_IS_LOCALBND(X, _reltab) \
#define RELTAB_IS_SIZE(X, _reltab) \
#ifdef __cplusplus
}
#endif
#endif /* _RELOC_DEFS_DOT_H */