-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdojreader.h
53 lines (41 loc) · 857 Bytes
/
dojreader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef DOJREADER_H
#define DOJREADER_H
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <err.h>
#include <sysexits.h>
#include <libelf/libelf.h>
#include <libelf/gelf.h>
#include "functionblocks.h"
#include "functions.h"
#define ERR -1
class dojreader
{
public:
dojreader(char *file,int verb);
~dojreader();
void print_all();
void print_pattern();
private:
Elf *elf;
Elf32_Ehdr *elf_header;
functionblocks fb;
symbols symb;
int verbose;
bool okay;
int infile;
void process_file();
void find_functionblocks();
void fill_datablocks();
void process_relocations();
void process_sections();
void fill_symbols();
};
#endif // DOJREADER_H