Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: a.out.h
#ifndef __A_OUT_GNU_H__
[0] Fix | Delete
#define __A_OUT_GNU_H__
[1] Fix | Delete
[2] Fix | Delete
#include <bits/a.out.h>
[3] Fix | Delete
[4] Fix | Delete
#define __GNU_EXEC_MACROS__
[5] Fix | Delete
[6] Fix | Delete
struct exec
[7] Fix | Delete
{
[8] Fix | Delete
unsigned long a_info; /* Use macros N_MAGIC, etc for access. */
[9] Fix | Delete
unsigned int a_text; /* Length of text, in bytes. */
[10] Fix | Delete
unsigned int a_data; /* Length of data, in bytes. */
[11] Fix | Delete
unsigned int a_bss; /* Length of uninitialized data area for file, in bytes. */
[12] Fix | Delete
unsigned int a_syms; /* Length of symbol table data in file, in bytes. */
[13] Fix | Delete
unsigned int a_entry; /* Start address. */
[14] Fix | Delete
unsigned int a_trsize;/* Length of relocation info for text, in bytes. */
[15] Fix | Delete
unsigned int a_drsize;/* Length of relocation info for data, in bytes. */
[16] Fix | Delete
};
[17] Fix | Delete
[18] Fix | Delete
enum machine_type
[19] Fix | Delete
{
[20] Fix | Delete
M_OLDSUN2 = 0,
[21] Fix | Delete
M_68010 = 1,
[22] Fix | Delete
M_68020 = 2,
[23] Fix | Delete
M_SPARC = 3,
[24] Fix | Delete
M_386 = 100,
[25] Fix | Delete
M_MIPS1 = 151,
[26] Fix | Delete
M_MIPS2 = 152
[27] Fix | Delete
};
[28] Fix | Delete
[29] Fix | Delete
#define N_MAGIC(exec) ((exec).a_info & 0xffff)
[30] Fix | Delete
#define N_MACHTYPE(exec) ((enum machine_type)(((exec).a_info >> 16) & 0xff))
[31] Fix | Delete
#define N_FLAGS(exec) (((exec).a_info >> 24) & 0xff)
[32] Fix | Delete
#define N_SET_INFO(exec, magic, type, flags) \
[33] Fix | Delete
((exec).a_info = ((magic) & 0xffff) \
[34] Fix | Delete
| (((int)(type) & 0xff) << 16) \
[35] Fix | Delete
| (((flags) & 0xff) << 24))
[36] Fix | Delete
#define N_SET_MAGIC(exec, magic) \
[37] Fix | Delete
((exec).a_info = ((exec).a_info & 0xffff0000) | ((magic) & 0xffff))
[38] Fix | Delete
#define N_SET_MACHTYPE(exec, machtype) \
[39] Fix | Delete
((exec).a_info = \
[40] Fix | Delete
((exec).a_info&0xff00ffff) | ((((int)(machtype))&0xff) << 16))
[41] Fix | Delete
#define N_SET_FLAGS(exec, flags) \
[42] Fix | Delete
((exec).a_info = \
[43] Fix | Delete
((exec).a_info&0x00ffffff) | (((flags) & 0xff) << 24))
[44] Fix | Delete
[45] Fix | Delete
/* Code indicating object file or impure executable. */
[46] Fix | Delete
#define OMAGIC 0407
[47] Fix | Delete
/* Code indicating pure executable. */
[48] Fix | Delete
#define NMAGIC 0410
[49] Fix | Delete
/* Code indicating demand-paged executable. */
[50] Fix | Delete
#define ZMAGIC 0413
[51] Fix | Delete
/* This indicates a demand-paged executable with the header in the text.
[52] Fix | Delete
The first page is unmapped to help trap NULL pointer references. */
[53] Fix | Delete
#define QMAGIC 0314
[54] Fix | Delete
/* Code indicating core file. */
[55] Fix | Delete
#define CMAGIC 0421
[56] Fix | Delete
[57] Fix | Delete
#define N_TRSIZE(a) ((a).a_trsize)
[58] Fix | Delete
#define N_DRSIZE(a) ((a).a_drsize)
[59] Fix | Delete
#define N_SYMSIZE(a) ((a).a_syms)
[60] Fix | Delete
#define N_BADMAG(x) \
[61] Fix | Delete
(N_MAGIC(x) != OMAGIC && N_MAGIC(x) != NMAGIC \
[62] Fix | Delete
&& N_MAGIC(x) != ZMAGIC && N_MAGIC(x) != QMAGIC)
[63] Fix | Delete
#define _N_HDROFF(x) (1024 - sizeof (struct exec))
[64] Fix | Delete
#define N_TXTOFF(x) \
[65] Fix | Delete
(N_MAGIC(x) == ZMAGIC ? _N_HDROFF((x)) + sizeof (struct exec) : \
[66] Fix | Delete
(N_MAGIC(x) == QMAGIC ? 0 : sizeof (struct exec)))
[67] Fix | Delete
#define N_DATOFF(x) (N_TXTOFF(x) + (x).a_text)
[68] Fix | Delete
#define N_TRELOFF(x) (N_DATOFF(x) + (x).a_data)
[69] Fix | Delete
#define N_DRELOFF(x) (N_TRELOFF(x) + N_TRSIZE(x))
[70] Fix | Delete
#define N_SYMOFF(x) (N_DRELOFF(x) + N_DRSIZE(x))
[71] Fix | Delete
#define N_STROFF(x) (N_SYMOFF(x) + N_SYMSIZE(x))
[72] Fix | Delete
[73] Fix | Delete
/* Address of text segment in memory after it is loaded. */
[74] Fix | Delete
#define N_TXTADDR(x) (N_MAGIC(x) == QMAGIC ? 4096 : 0)
[75] Fix | Delete
[76] Fix | Delete
/* Address of data segment in memory after it is loaded. */
[77] Fix | Delete
#define SEGMENT_SIZE 1024
[78] Fix | Delete
[79] Fix | Delete
#define _N_SEGMENT_ROUND(x) (((x) + SEGMENT_SIZE - 1) & ~(SEGMENT_SIZE - 1))
[80] Fix | Delete
#define _N_TXTENDADDR(x) (N_TXTADDR(x)+(x).a_text)
[81] Fix | Delete
[82] Fix | Delete
#define N_DATADDR(x) \
[83] Fix | Delete
(N_MAGIC(x)==OMAGIC? (_N_TXTENDADDR(x)) \
[84] Fix | Delete
: (_N_SEGMENT_ROUND (_N_TXTENDADDR(x))))
[85] Fix | Delete
#define N_BSSADDR(x) (N_DATADDR(x) + (x).a_data)
[86] Fix | Delete
[87] Fix | Delete
#if !defined (N_NLIST_DECLARED)
[88] Fix | Delete
struct nlist
[89] Fix | Delete
{
[90] Fix | Delete
union
[91] Fix | Delete
{
[92] Fix | Delete
char *n_name;
[93] Fix | Delete
struct nlist *n_next;
[94] Fix | Delete
long n_strx;
[95] Fix | Delete
} n_un;
[96] Fix | Delete
unsigned char n_type;
[97] Fix | Delete
char n_other;
[98] Fix | Delete
short n_desc;
[99] Fix | Delete
unsigned long n_value;
[100] Fix | Delete
};
[101] Fix | Delete
#endif /* no N_NLIST_DECLARED. */
[102] Fix | Delete
[103] Fix | Delete
#define N_UNDF 0
[104] Fix | Delete
#define N_ABS 2
[105] Fix | Delete
#define N_TEXT 4
[106] Fix | Delete
#define N_DATA 6
[107] Fix | Delete
#define N_BSS 8
[108] Fix | Delete
#define N_FN 15
[109] Fix | Delete
#define N_EXT 1
[110] Fix | Delete
#define N_TYPE 036
[111] Fix | Delete
#define N_STAB 0340
[112] Fix | Delete
#define N_INDR 0xa
[113] Fix | Delete
#define N_SETA 0x14 /* Absolute set element symbol. */
[114] Fix | Delete
#define N_SETT 0x16 /* Text set element symbol. */
[115] Fix | Delete
#define N_SETD 0x18 /* Data set element symbol. */
[116] Fix | Delete
#define N_SETB 0x1A /* Bss set element symbol. */
[117] Fix | Delete
#define N_SETV 0x1C /* Pointer to set vector in data area. */
[118] Fix | Delete
[119] Fix | Delete
#if !defined (N_RELOCATION_INFO_DECLARED)
[120] Fix | Delete
/* This structure describes a single relocation to be performed.
[121] Fix | Delete
The text-relocation section of the file is a vector of these structures,
[122] Fix | Delete
all of which apply to the text section.
[123] Fix | Delete
Likewise, the data-relocation section applies to the data section. */
[124] Fix | Delete
[125] Fix | Delete
struct relocation_info
[126] Fix | Delete
{
[127] Fix | Delete
int r_address;
[128] Fix | Delete
unsigned int r_symbolnum:24;
[129] Fix | Delete
unsigned int r_pcrel:1;
[130] Fix | Delete
unsigned int r_length:2;
[131] Fix | Delete
unsigned int r_extern:1;
[132] Fix | Delete
unsigned int r_pad:4;
[133] Fix | Delete
};
[134] Fix | Delete
#endif /* no N_RELOCATION_INFO_DECLARED. */
[135] Fix | Delete
[136] Fix | Delete
#endif /* __A_OUT_GNU_H__ */
[137] Fix | Delete
[138] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function