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