01302683 |
/* |
2023340a |
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm |
01302683 |
*
* This program is free software; you can redistribute it and/or modify |
2023340a |
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. |
01302683 |
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software |
48b7b4a7 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA. |
01302683 |
*/
#ifndef __EXECS_H
#define __EXECS_H
#include "cltypes.h" |
d2ba6f98 |
#include "hashtab.h" |
ea7b98f8 |
#include "bcfeatures.h" |
d2ba6f98 |
|
b8656613 |
/** @file */
/** Section of executable file */ |
01302683 |
struct cli_exe_section { |
b8656613 |
uint32_t rva;/**< Relative VirtualAddress */
uint32_t vsz;/**< VirtualSize */
uint32_t raw;/**< Raw offset (in file) */
uint32_t rsz;/**< Raw size (in file) */
uint32_t chr;/**< Section characteristics */
uint32_t urva; /**< PE - unaligned VirtualAddress */
uint32_t uvsz; /**< PE - unaligned VirtualSize */
uint32_t uraw; /**< PE - unaligned PointerToRawData */
uint32_t ursz; /**< PE - unaligned SizeOfRawData */ |
01302683 |
};
|
b8656613 |
/** Executable file information */ |
01302683 |
struct cli_exe_info { |
b8656613 |
/** Information about all the sections of this file.
* This array has \p nsection elements */ |
ea7b98f8 |
struct cli_exe_section *section EBOUNDS(nsections); |
b8656613 |
/** Offset where this executable start in file (nonzero if embedded) */ |
88815fd8 |
uint32_t offset; |
b8656613 |
/** Entrypoint of executable */ |
01302683 |
uint32_t ep; |
b8656613 |
/** Number of sections*/ |
01302683 |
uint16_t nsections; |
d2ba6f98 |
/** Hashset for versioninfo matching */
struct cli_hashset *vinfo; |
01302683 |
};
#endif |