Adding .h files from sr_i386.
This commit is contained in:
parent
6c3ea0fea2
commit
de89d5ae3f
|
@ -0,0 +1,17 @@
|
|||
/****************************************************************
|
||||
* *
|
||||
* Copyright 2001, 2010 Fidelity Information Services, Inc *
|
||||
* *
|
||||
* This source code contains the intellectual property *
|
||||
* of its copyright holder(s), and is made available *
|
||||
* under a license. If you do not know the terms of *
|
||||
* the license, please stop and do not read further. *
|
||||
* *
|
||||
****************************************************************/
|
||||
|
||||
#ifndef __AUTO_ZLINK_H__
|
||||
#define __AUTO_ZLINK_H__
|
||||
|
||||
rhdtyp *auto_zlink (unsigned char *pc, int4 **line);
|
||||
|
||||
#endif
|
|
@ -0,0 +1,20 @@
|
|||
/****************************************************************
|
||||
* *
|
||||
* Copyright 2001 Sanchez Computer Associates, Inc. *
|
||||
* *
|
||||
* This source code contains the intellectual property *
|
||||
* of its copyright holder(s), and is made available *
|
||||
* under a license. If you do not know the terms of *
|
||||
* the license, please stop and do not read further. *
|
||||
* *
|
||||
****************************************************************/
|
||||
|
||||
#ifndef EMIT_CODE_INCLUDED
|
||||
#define EMIT_CODE_INCLUDED
|
||||
|
||||
void trip_gen(triple *ct);
|
||||
short *emit_vax_inst(short *inst, oprtype **fst_opr, oprtype **lst_opr);
|
||||
void emit_xfer(short xfer);
|
||||
void emit_base_offset (short reg_opcode, short base_reg, int4 offset);
|
||||
|
||||
#endif
|
|
@ -0,0 +1,77 @@
|
|||
/****************************************************************
|
||||
* *
|
||||
* Copyright 2001 Sanchez Computer Associates, Inc. *
|
||||
* *
|
||||
* This source code contains the intellectual property *
|
||||
* of its copyright holder(s), and is made available *
|
||||
* under a license. If you do not know the terms of *
|
||||
* the license, please stop and do not read further. *
|
||||
* *
|
||||
****************************************************************/
|
||||
|
||||
struct exec {
|
||||
short a_magic; /* magic number */
|
||||
short a_stamp; /* version stamp - RTU 2.0+ uses this - see below */
|
||||
uint4 a_text; /* size of text segment */
|
||||
uint4 a_data; /* size of initialized data */
|
||||
uint4 a_bss; /* size of uninitialized data */
|
||||
uint4 a_syms; /* size of symbol table */
|
||||
uint4 a_entry; /* entry point */
|
||||
uint4 a_trsize; /* size of text relocation */
|
||||
uint4 a_drsize; /* size of data relocation */
|
||||
};
|
||||
|
||||
/*
|
||||
* Format of a relocation datum.
|
||||
*/
|
||||
struct relocation_info {
|
||||
int r_address; /* address which is relocated */
|
||||
unsigned int r_symbolnum:24, /* local symbol ordinal */
|
||||
r_pcrel:1, /* was relocated pc relative already */
|
||||
r_length:2, /* 0=byte, 1=word, 2=int4 */
|
||||
r_extern:1, /* does not include value of sym referenced */
|
||||
r_pad:4; /* nothing, yet */
|
||||
};
|
||||
|
||||
struct rel_table {
|
||||
struct rel_table *next, *resolve;
|
||||
struct relocation_info r;
|
||||
};
|
||||
|
||||
/*
|
||||
* Format of a symbol table entry; this file is included by <a.out.h>
|
||||
* and should be used if you aren't interested the a.out header
|
||||
* or relocation information.
|
||||
*/
|
||||
struct nlist {
|
||||
int4 n_strx; /* index into file string table */
|
||||
unsigned char n_type; /* type flag, i.e. N_TEXT etc; see below */
|
||||
char n_other; /* unused */
|
||||
short n_desc; /* see <stab.h> */
|
||||
uint4 n_value; /* value of this symbol (or sdb offset) */
|
||||
};
|
||||
|
||||
struct sym_table {
|
||||
struct sym_table *next;
|
||||
struct nlist n;
|
||||
struct rel_table *resolve;
|
||||
unsigned short name_len;
|
||||
unsigned char name[1];
|
||||
};
|
||||
|
||||
/*
|
||||
* Simple values for n_type.
|
||||
*/
|
||||
#define N_UNDF 0x0 /* undefined */
|
||||
#define N_ABS 0x2 /* absolute */
|
||||
#define N_TEXT 0x4 /* text */
|
||||
#define N_DATA 0x6 /* data */
|
||||
#define N_BSS 0x8 /* bss */
|
||||
#define N_COMM 0x12 /* common (internal to ld) */
|
||||
#define N_IPCOMM 0x16 /* initialized private */
|
||||
#define N_PCOMM 0x18 /* uninitialized private */
|
||||
#define N_FN 0x1f /* file name symbol */
|
||||
|
||||
#define N_EXT 01 /* external bit, or'ed in */
|
||||
#define N_TYPE 0x1e /* mask for all the type bits */
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,29 @@
|
|||
/****************************************************************
|
||||
* *
|
||||
* Copyright 2001, 2009 Fidelity Information Services, Inc *
|
||||
* *
|
||||
* This source code contains the intellectual property *
|
||||
* of its copyright holder(s), and is made available *
|
||||
* under a license. If you do not know the terms of *
|
||||
* the license, please stop and do not read further. *
|
||||
* *
|
||||
****************************************************************/
|
||||
|
||||
typedef unsigned char zb_code;
|
||||
#define ZB_CODE_MASK 0xff
|
||||
#define INST_TYPE zb_code
|
||||
|
||||
/* The ZBreak command operates by finding the generated code for the op_linestart or op_linefetch for the source
|
||||
* line in question and changing the offset in the transfer table load address instruction from the op_linestart or
|
||||
* op_linefetch offset to the appropriate zbreak functionality opcode offset.
|
||||
* In some platforms(IA64 and ZOS) since the INSTRUCTION LAYOUT is complex we need following
|
||||
* macros for instruction manipulation.
|
||||
* EXTRACT_OFFSET_TO_M_OPCODE
|
||||
* FIX_OFFSET_WITH_ZBREAK_OFFSET
|
||||
* EXTRACT_AND_UPDATE_INST
|
||||
* These macros are called only when COMPLEX_INSTRUCTION_UPDATE is defined
|
||||
* If COMPLEX_INSTRUCTION_UPDATE is not defined portable code in the caller of these macros
|
||||
* is invoked.
|
||||
*/
|
||||
|
||||
#undef COMPLEX_INSTRUCTION_UPDATE
|
Loading…
Reference in New Issue