[syslinux] [PATCH 14/21] sys/module.h: remove the #ifdef DYNAMIC_MODULE condition
Ferenc Wágner
wferi at niif.hu
Tue Oct 15 11:03:42 PDT 2013
This makes the module_* functions accessible to COM32 modules.
MODULE_INIT and MODULE_EXIT are not used anymore.
---
com32/include/sys/module.h | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/com32/include/sys/module.h b/com32/include/sys/module.h
index c1d4253..eaa4182 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_
--
1.7.10.4
More information about the Syslinux
mailing list