rulimine/src/lib/elf.h

16 lines
481 B
C
Raw Normal View History

2020-03-25 03:04:18 +03:00
#ifndef __LIB__ELF_H__
#define __LIB__ELF_H__
#include <stdint.h>
2020-04-14 06:20:55 +03:00
#include <fs/file.h>
2020-03-25 03:04:18 +03:00
2020-04-18 19:01:29 +03:00
int elf_bits(struct file_handle *fd);
int elf64_load(struct file_handle *fd, uint64_t *entry_point, uint64_t *top);
int elf64_load_section(struct file_handle *fd, void *buffer, const char *name, size_t limit);
int elf32_load(struct file_handle *fd, uint32_t *entry_point, uint32_t *top);
int elf32_load_section(struct file_handle *fd, void *buffer, const char *name, size_t limit);
2020-03-25 03:04:18 +03:00
#endif