diff options
| author | Ada Christine <adachristine18@gmail.com> | 2023-01-30 00:05:53 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2023-01-30 00:05:53 +0000 |
| commit | 798b1dc391f424868f5f4bac8937c191ed4716b8 (patch) | |
| tree | 44269b4f29b8c6762657e12a02ac33063b665461 /api/lib/elf.h | |
| parent | fba7a0f3cde6217235663fcfb300b63cb8d7c2df (diff) | |
headers moved around
Diffstat (limited to 'api/lib/elf.h')
| -rw-r--r-- | api/lib/elf.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 <elf/elf64.h> + +#include <stdbool.h> +#include <stddef.h> + +#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); + |
