]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
move the ast_module_info structure into the special section as well, otherwise when...
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 22 Feb 2007 17:36:46 +0000 (17:36 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 22 Feb 2007 17:36:46 +0000 (17:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@56209 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/module.h

index 4ced03fa98c92c737ea8dbbeac586c0c62a4c959..0fe4ccf57c6162d40f687206b0d667a648bfda97 100644 (file)
@@ -300,7 +300,9 @@ static void __restore_globals(void)
 }
 
 #define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...) \
-       static struct ast_module_info __mod_info = {            \
+       static struct ast_module_info                           \
+                __attribute__((section(".embed_module")))      \
+               __mod_info = {                                  \
                .backup_globals = __backup_globals,             \
                .restore_globals = __restore_globals,           \
                .name = AST_MODULE,                             \