aboutsummaryrefslogtreecommitdiffstats
path: root/source/elf_load.hpp
blob: faa74d236d545ba47fccfdefafb0120726bef6a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * @file elf_load.hpp
 * @brief Loads ELF binary data into memory for execution.
 *
 * Copyright (C) 2020 Clyne Sullivan
 *
 * Distributed under the GNU GPL v3 or later. You should have received a copy of
 * the GNU General Public License along with this program.
 * If not, see <https://www.gnu.org/licenses/>.
 */

#ifndef ELF_LOAD_HPP_
#define ELF_LOAD_HPP_

#include <cstddef>
#include <cstdint>

namespace elf
{
    using entry_t = uint16_t *(*)(uint16_t *, size_t);

    entry_t load(void *elf_data);
}

#endif // ELF_LOAD_HPP_