aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
diff options
context:
space:
mode:
authorFerenc Wágner <wferi@niif.hu>2013-10-13 21:29:11 +0200
committerFerenc Wágner <wferi@niif.hu>2014-03-01 17:40:34 +0100
commitff5ded43e4c2d40d0ae723b902119bcff624de13 (patch)
tree45ce53b3cb32463ba827e9fb4b77541b49f7032d /com32/include
parent118294dc6676aa5ba1d798c4fa5646020e778dc1 (diff)
downloadsyslinux-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.
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/sys/module.h20
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_