LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
PE/Section.h
Go to the documentation of this file.
1/* Copyright 2017 - 2024 R. Thomas
2 * Copyright 2017 - 2024 Quarkslab
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#ifndef C_LIEF_PE_SECTION_H_
17#define C_LIEF_PE_SECTION_H_
18
19#include <inttypes.h>
20
21#include "LIEF/PE/enums.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
63};
64
65
67 const char* name;
69 uint64_t size;
70 uint64_t offset;
71
72 uint32_t virtual_size;
76
77 uint8_t* content;
78 uint64_t content_size;
79 double entropy;
80
81};
82
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif
LIEF_PE_SECTION_CHARACTERISTICS
Definition PE/Section.h:27
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_NOT_PAGED
Definition PE/Section.h:58
@ LIEF_PE_SECTION_CHARACTERISTICS_CNT_UNINITIALIZED_DATA
Definition PE/Section.h:31
@ LIEF_PE_SECTION_CHARACTERISTICS_LNK_NRELOC_OVFL
Definition PE/Section.h:55
@ LIEF_PE_SECTION_CHARACTERISTICS_CNT_INITIALIZED_DATA
Definition PE/Section.h:30
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_PRELOAD
Definition PE/Section.h:40
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_4BYTES
Definition PE/Section.h:43
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_512BYTES
Definition PE/Section.h:50
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_NOT_CACHED
Definition PE/Section.h:57
@ LIEF_PE_SECTION_CHARACTERISTICS_LNK_OTHER
Definition PE/Section.h:32
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_16BYTES
Definition PE/Section.h:45
@ LIEF_PE_SECTION_CHARACTERISTICS_TYPE_NO_PAD
Definition PE/Section.h:28
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_PURGEABLE
Definition PE/Section.h:37
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_1024BYTES
Definition PE/Section.h:51
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_2BYTES
Definition PE/Section.h:42
@ LIEF_PE_SECTION_CHARACTERISTICS_LNK_INFO
Definition PE/Section.h:33
@ LIEF_PE_SECTION_CHARACTERISTICS_LNK_REMOVE
Definition PE/Section.h:34
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_64BYTES
Definition PE/Section.h:47
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_1BYTES
Definition PE/Section.h:41
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_256BYTES
Definition PE/Section.h:49
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_2048BYTES
Definition PE/Section.h:52
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_8BYTES
Definition PE/Section.h:44
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_READ
Definition PE/Section.h:61
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_EXECUTE
Definition PE/Section.h:60
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_16BIT
Definition PE/Section.h:38
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_8192BYTES
Definition PE/Section.h:54
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_4096BYTES
Definition PE/Section.h:53
@ LIEF_PE_SECTION_CHARACTERISTICS_LNK_COMDAT
Definition PE/Section.h:35
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_LOCKED
Definition PE/Section.h:39
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_SHARED
Definition PE/Section.h:59
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_128BYTES
Definition PE/Section.h:48
@ LIEF_PE_SECTION_CHARACTERISTICS_ALIGN_32BYTES
Definition PE/Section.h:46
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_DISCARDABLE
Definition PE/Section.h:56
@ LIEF_PE_SECTION_CHARACTERISTICS_GPREL
Definition PE/Section.h:36
@ LIEF_PE_SECTION_CHARACTERISTICS_MEM_WRITE
Definition PE/Section.h:62
@ LIEF_PE_SECTION_CHARACTERISTICS_CNT_CODE
Definition PE/Section.h:29
Definition PE/Section.h:66
double entropy
Definition PE/Section.h:79
uint64_t virtual_address
Definition PE/Section.h:68
const char * name
Definition PE/Section.h:67
uint32_t pointerto_line_numbers
Definition PE/Section.h:74
uint8_t * content
Definition PE/Section.h:77
uint64_t offset
Definition PE/Section.h:70
uint32_t pointerto_relocation
Definition PE/Section.h:73
uint32_t characteristics
Definition PE/Section.h:75
uint32_t virtual_size
Definition PE/Section.h:72
uint64_t content_size
Definition PE/Section.h:78
uint64_t size
Definition PE/Section.h:69