LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
ELF/ParserConfig.hpp
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 LIEF_ELF_PARSER_CONFIG_H
17#define LIEF_ELF_PARSER_CONFIG_H
18#include "LIEF/visibility.h"
19#include "LIEF/ELF/enums.hpp"
20
21namespace LIEF {
22namespace ELF {
23
25struct LIEF_API ParserConfig {
28 enum class DYNSYM_COUNT {
29 AUTO = 0,
30 SECTION = 1,
31 HASH = 2,
32 RELOCATIONS = 3,
33 };
34
37 static ParserConfig all() {
38 static const ParserConfig DEFAULT;
39 return DEFAULT;
40 }
41
42 bool parse_relocations = true;
43 bool parse_dyn_symbols = true;
44 bool parse_symtab_symbols = true;
45 bool parse_symbol_versions = true;
46 bool parse_notes = true;
47 bool parse_overlay = true;
48
50 DYNSYM_COUNT count_mtd = DYNSYM_COUNT::AUTO;
51};
52
53}
54}
55#endif
LIEF namespace.
Definition Abstract/Binary.hpp:32
This structure is used to tweak the ELF Parser (ELF::Parser)
Definition ELF/ParserConfig.hpp:25
DYNSYM_COUNT
Definition ELF/ParserConfig.hpp:28
static ParserConfig all()
This returns a ParserConfig object configured to process all the ELF elements.
Definition ELF/ParserConfig.hpp:37