comparison objgrep/globals.c @ 167:c25367bb7656

objgrep: written, compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 04 Jul 2014 00:54:33 +0000
parents leo-obj/tool/globals.c@87b82398a08b
children 77cd647375e5
comparison
equal deleted inserted replaced
166:861f5ca49581 167:c25367bb7656
1 /*
2 * Definitions of global vars for the objgrep program, based on tiobjd.
3 */
4
5 #include <sys/types.h>
6
7 char *objfilename, *binfilename;
8 u_char *objfilemap, *binfilemap;
9 size_t objfile_tot_size, binfile_tot_size;
10
11 struct external_filehdr *filehdr_struct;
12 struct external_scnhdr *sections_raw;
13 unsigned nsections;
14 struct external_syment *symtab_raw;
15 unsigned nsymtab;
16 unsigned strtab_offset;
17
18 struct internal_scnhdr *sections, *grep_section;
19 struct internal_syment **symtab;
20 u_char *pattern_match, *pattern_mask;
21 unsigned pattern_len;
22 struct internal_reloc *relocs;
23 unsigned match_offset;