grub/include/grub/module_verifier.h
Vladimir Serbinenko 6371e9c104 grub-module-verifier: Ignore all_video emptiness on xen.
It's intentional that it's empty when no video modules
are available.
2017-01-30 00:13:41 +00:00

20 lines
626 B
C

#include <stdint.h>
#include <stdlib.h>
#include <grub/types.h>
#define GRUB_MODULE_VERIFY_SUPPORTS_REL 1
#define GRUB_MODULE_VERIFY_SUPPORTS_RELA 2
struct grub_module_verifier_arch {
const char *name;
int voidp_sizeof;
int bigendian;
int machine;
int flags;
const int *supported_relocations;
const int *short_relocations;
};
void grub_module_verify64(void *module_img, size_t module_size, const struct grub_module_verifier_arch *arch, const char **whitelist_empty);
void grub_module_verify32(void *module_img, size_t module_size, const struct grub_module_verifier_arch *arch, const char **whitelist_empty);