[syslinux:master] sys/module.h: remove the #ifdef DYNAMIC_MODULE condition
syslinux-bot for Ferenc Wágner
wferi at niif.hu
Sun Mar 2 13:48:19 PST 2014
Commit-ID: ff5ded43e4c2d40d0ae723b902119bcff624de13
Gitweb: http://www.syslinux.org/commit/ff5ded43e4c2d40d0ae723b902119bcff624de13
Author: Ferenc Wágner <wferi at niif.hu>
AuthorDate: Sun, 13 Oct 2013 21:29:11 +0200
Committer: Ferenc Wágner <wferi at niif.hu>
CommitDate: Sat, 1 Mar 2014 17:40:34 +0100
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.
---
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_
More information about the Syslinux-commits
mailing list