X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=common%2Fcommon.h;fp=common%2Fcommon.h;h=7a176a421a8c252671105f6958e81651d7621b95;hb=43cbaab1fc66139d3dfd87a2f8b6be5d906ee317;hp=e2f2b3ba3339f016259013ab99f19bfa86af9215;hpb=18552b13b8989c03cfc838c7cbcb9ca26eb3417f;p=apps%2Fpfixtools.git diff --git a/common/common.h b/common/common.h index e2f2b3b..7a176a4 100644 --- a/common/common.h +++ b/common/common.h @@ -63,8 +63,8 @@ typedef int (*initcall_t)(void); typedef void (*exitcall_t)(void); -#define __init __attribute__((__used__,__section__(".mad.init"))) -#define __exit __attribute__((__used__,__section__(".mad.exit"))) +#define __init __attribute__((__used__,__section__("MAD_INIT,__text,regular"))) +#define __exit __attribute__((__used__,__section__("MAD_EXIT,__text,regular"))) #define module_init(fn) static __init initcall_t __init_##fn = fn; #define module_exit(fn) static __exit exitcall_t __exit_##fn = fn;