mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 09:10:53 +00:00
support for registering functions from modules (not tested yet)
This commit is contained in:
1 parent
daca6c5f45
commit
73911575dd
4 files changed
+54
-13
No files matched your search
@@ -124,6 +124,8 @@ void grub_arch_dl_init_linker (void);
|
||||
|
||||
#ifdef __ia64__
|
||||
grub_size_t grub_arch_dl_get_tramp_size (const void *ehdr, unsigned sec);
|
||||
grub_err_t grub_arch_dl_allocate_gp (grub_dl_t mod, const void *ehdr);
|
||||
|
||||
#define GRUB_ARCH_DL_TRAMP_ALIGN 16
|
||||
#else
|
||||
static inline grub_size_t
|
||||
@@ -131,6 +133,13 @@ grub_arch_dl_get_tramp_size (const void *ehdr __attribute__ ((unused)), int sec
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline grub_err_t
|
||||
grub_arch_dl_allocate_gp (grub_dl_t mod __attribute__ ((unused)),
|
||||
const void *ehdr __attribute__ ((unused)))
|
||||
{
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
#define GRUB_ARCH_DL_TRAMP_ALIGN 1
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user