@@ -118,8 +118,9 @@ struct chandef {
.parent = _section, \
.selector = (_sel), \
}; \
+ _Pragma("GCC diagnostic ignored \"-Wattributes\"") \
static struct cmd *__cmd ## _ ## _symname ## _ ## _handler ## _ ## _nlcmd ## _ ## _idby ## _ ## _hidden ## _p \
- __attribute__((used,section("__cmd"))) = \
+ __attribute__((used,retain,section("__cmd"))) = \
&__cmd ## _ ## _symname ## _ ## _handler ## _ ## _nlcmd ## _ ## _idby ## _ ## _hidden
#define __ACMD(_section, _symname, _name, _args, _nlcmd, _flags, _hidden, _idby, _handler, _help, _sel, _alias)\
__COMMAND(_section, _symname, _name, _args, _nlcmd, _flags, _hidden, _idby, _handler, _help, _sel);\