All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups
bytecode_execs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009-2013 Sourcefire, Inc.
3  * Copyright (C) 2014 Cisco Systems, Inc. and/or its affiliates.
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS AS IS'' AND
16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18  * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
19  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25  * SUCH DAMAGE.
26  */
27 
28 #ifndef __EXECS_H
29 #define __EXECS_H
30 
31 
32 
33 #include "bcfeatures.h"
34 
40  uint32_t rva;
41  uint32_t vsz;
42  uint32_t raw;
43  uint32_t rsz;
44  uint32_t chr;
45  uint32_t urva;
46  uint32_t uvsz;
47  uint32_t uraw;
48  uint32_t ursz;
49 };
50 
54 struct cli_exe_info {
59  uint32_t offset;
61  uint32_t ep;
63  uint16_t nsections;
64  void *dummy;/* for compat - preserve offset */
66  uint32_t res_addr;
68  uint32_t hdr_size;
70 };
71 
72 #endif
Definition: bytecode_execs.h:54
uint32_t chr
Definition: bytecode_execs.h:44
uint32_t rva
Definition: bytecode_execs.h:40
uint32_t uraw
Definition: bytecode_execs.h:47
uint32_t ep
Definition: bytecode_execs.h:61
uint32_t vsz
Definition: bytecode_execs.h:41
uint16_t nsections
Definition: bytecode_execs.h:63
uint32_t res_addr
Definition: bytecode_execs.h:66
Definition: bytecode_execs.h:39
uint32_t ursz
Definition: bytecode_execs.h:48
uint32_t raw
Definition: bytecode_execs.h:42
struct cli_exe_section * section
Definition: bytecode_execs.h:57
uint32_t hdr_size
Definition: bytecode_execs.h:68
uint32_t uvsz
Definition: bytecode_execs.h:46
uint32_t offset
Definition: bytecode_execs.h:59
uint32_t urva
Definition: bytecode_execs.h:45
uint32_t rsz
Definition: bytecode_execs.h:43