FreeCalypso > hg > freecalypso-reveng
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/objgrep/globals.c Fri Jul 04 00:54:33 2014 +0000 @@ -0,0 +1,23 @@ +/* + * Definitions of global vars for the objgrep program, based on tiobjd. + */ + +#include <sys/types.h> + +char *objfilename, *binfilename; +u_char *objfilemap, *binfilemap; +size_t objfile_tot_size, binfile_tot_size; + +struct external_filehdr *filehdr_struct; +struct external_scnhdr *sections_raw; +unsigned nsections; +struct external_syment *symtab_raw; +unsigned nsymtab; +unsigned strtab_offset; + +struct internal_scnhdr *sections, *grep_section; +struct internal_syment **symtab; +u_char *pattern_match, *pattern_mask; +unsigned pattern_len; +struct internal_reloc *relocs; +unsigned match_offset;