Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/ianos/ianos.h
1476 views
1
/*
2
* Copyright (c) 2018 M4xw
3
* Copyright (c) 2018 CTCaer
4
*
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms and conditions of the GNU General Public License,
7
* version 2, as published by the Free Software Foundation.
8
*
9
* This program is distributed in the hope it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
* more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef IANOS_H
19
#define IANOS_H
20
21
#include <utils/types.h>
22
23
typedef enum
24
{
25
DRAM_LIB = 0, // DRAM library.
26
EXEC_ELF = 1, // Executable elf that does not return.
27
DR64_LIB = 2, // AARCH64 DRAM library.
28
AR64_ELF = 3, // Executable elf that does not return.
29
KEEP_IN_RAM = (1 << 31) // Shared library mask.
30
} elfType_t;
31
32
uintptr_t ianos_loader(char *path, elfType_t type, void* config);
33
34
#endif
35