From 798b1dc391f424868f5f4bac8937c191ed4716b8 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Mon, 30 Jan 2023 00:05:53 +0000 Subject: headers moved around --- api/lib/elf.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 api/lib/elf.h (limited to 'api/lib/elf.h') diff --git a/api/lib/elf.h b/api/lib/elf.h new file mode 100644 index 0000000..05d25bc --- /dev/null +++ b/api/lib/elf.h @@ -0,0 +1,15 @@ +#pragma once + +#include + +#include +#include + +#ifdef __x86_64__ +# define elf_validate elf64_validate +# define elf_size elf64_size +#endif + +bool elf64_validate(Elf64_Ehdr *ehdr, unsigned type, unsigned machine); +size_t elf64_size(Elf64_Ehdr *ehdr, Elf64_Phdr *phdr); + -- cgit v1.3.1-1-g115d