diff options
author | Ferenc Wágner <wferi@niif.hu> | 2013-10-13 21:29:11 +0200 |
---|---|---|
committer | Ferenc Wágner <wferi@niif.hu> | 2014-03-01 17:40:34 +0100 |
commit | ff5ded43e4c2d40d0ae723b902119bcff624de13 (patch) | |
tree | 45ce53b3cb32463ba827e9fb4b77541b49f7032d | |
parent | 118294dc6676aa5ba1d798c4fa5646020e778dc1 (diff) | |
download | syslinux-ff5ded43e4c2d40d0ae723b902119bcff624de13.tar.gz syslinux-ff5ded43e4c2d40d0ae723b902119bcff624de13.tar.xz syslinux-ff5ded43e4c2d40d0ae723b902119bcff624de13.zip |
sys/module.h: remove the #ifdef DYNAMIC_MODULE condition
This makes the module_* functions accessible to COM32 modules.
MODULE_INIT and MODULE_EXIT are not used anymore.
-rw-r--r-- | com32/include/sys/module.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/com32/include/sys/module.h b/com32/include/sys/module.h index c1d42531..eaa4182a 100644 --- a/com32/include/sys/module.h +++ b/com32/include/sys/module.h @@ -156,24 +156,6 @@ extern struct elf_module *unload_modules_since(const char *name); extern FILE *findpath(char *name); -#ifdef DYNAMIC_MODULE - -/* - * This portion is included by dynamic (ELF) module source files. - */ - -#define MODULE_INIT(fn) static module_init_t __module_init \ - __used __attribute__((section(".ctors_modinit"))) = fn - -#define MODULE_EXIT(fn) static module_exit_t __module_exit \ - __used __attribute__((section(".dtors_modexit"))) = fn - -#else - -/* - * This portion is included by the core COM32 module. - */ - /** * Names of symbols with special meaning (treated as special cases at linking) */ @@ -365,6 +347,4 @@ static inline const struct elf_module *syslinux_current(void) } -#endif // DYNAMIC_MODULE - #endif // MODULE_H_ |