From 6d15571c7b25490355c895b526eec3e0f105f9fb Mon Sep 17 00:00:00 2001 From: Matthew Cather Date: Wed, 30 Oct 2024 17:10:59 -0500 Subject: [PATCH] Use more portable attribute --- src/mdio/mdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdio/mdio.h b/src/mdio/mdio.h index b158f0f..684be7f 100644 --- a/src/mdio/mdio.h +++ b/src/mdio/mdio.h @@ -57,7 +57,7 @@ struct cmd { // Derived from https://stackoverflow.com/a/4152185 #define DEFINE_CMD(_name, _exec) \ - __attribute__((externally_visible, section(".cmd_registry"), aligned(__alignof__(struct cmd)) )) \ + __attribute__((used, section(".cmd_registry"), aligned(__alignof__(struct cmd)) )) \ struct cmd _exec ## _cmd = { .name = _name, .exec = _exec } extern struct cmd cmds_start;