Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c

and implement windows variant.
This commit is contained in:
Vladimir Serbinenko 2013-12-08 18:07:41 +01:00
parent d5c14e1e26
commit a19293cb75
7 changed files with 147 additions and 13 deletions

View file

@ -210,6 +210,13 @@ extern grub_dl_t EXPORT_VAR(grub_dl_head);
#define FOR_DL_MODULES(var) FOR_LIST_ELEMENTS ((var), (grub_dl_head))
#ifdef GRUB_MACHINE_EMU
void *
grub_osdep_dl_memalign (grub_size_t align, grub_size_t size);
void
grub_dl_osdep_dl_free (void *ptr);
#endif
static inline void
grub_dl_init (grub_dl_t mod)
{