elf_api_interface.h 367 B

12345678910111213141516
  1. #pragma once
  2. #include <elf.h>
  3. #include <stdbool.h>
  4. /**
  5. * @brief Interface for ELF loader to resolve symbols
  6. */
  7. typedef struct ElfApiInterface {
  8. uint16_t api_version_major;
  9. uint16_t api_version_minor;
  10. bool (*resolver_callback)(
  11. const struct ElfApiInterface* interface,
  12. const char* name,
  13. Elf32_Addr* address);
  14. } ElfApiInterface;