LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
ELF/Binary.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 LIEF_C_ELF_BINARY_H
17#define LIEF_C_ELF_BINARY_H
18
19#include <stddef.h>
20
21#include "LIEF/visibility.h"
22
23#include "LIEF/ELF/enums.h"
24
25#include "LIEF/ELF/Section.h"
26#include "LIEF/ELF/Segment.h"
27#include "LIEF/ELF/Header.h"
29#include "LIEF/ELF/Symbol.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
47
49
51LIEF_API Elf_Binary_t* elf_parse(const char *file);
52
54
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif
int elf_binary_save_header(Elf_Binary_t *binary)
void elf_binary_destroy(Elf_Binary_t *binary)
Elf_Binary_t * elf_parse(const char *file)
Definition ELF/Binary.h:36
Elf_Symbol_t ** dynamic_symbols
Definition ELF/Binary.h:44
Elf_Segment_t ** segments
Definition ELF/Binary.h:42
Elf_Section_t ** sections
Definition ELF/Binary.h:41
uint32_t type
Definition ELF/Binary.h:39
Elf_Symbol_t ** symtab_symbols
Definition ELF/Binary.h:45
const char * interpreter
Definition ELF/Binary.h:38
Elf_Header_t header
Definition ELF/Binary.h:40
void * handler
Definition ELF/Binary.h:37
Elf_DynamicEntry_t ** dynamic_entries
Definition ELF/Binary.h:43
Definition DynamicEntry.h:25
Definition ELF/Header.h:26
Definition ELF/Section.h:25
Definition ELF/Segment.h:26
Definition ELF/Symbol.h:26
#define LIEF_API
Definition visibility.h:41