1 #if defined(HAVE_ASM_WEAK_DIRECTIVE) || defined(HAVE_ASM_WEAKEXT_DIRECTIVE)
2 #define HAVE_WEAK_SYMBOLS
8 * Define alias, asym, as a strong alias for symbol, sym.
10 #define sysio_sym_strong_alias(sym, asym) \
11 extern __typeof(sym) asym __attribute__((alias(STRINGOF(sym))));
13 #ifdef HAVE_WEAK_SYMBOLS
16 * Define alias, asym, as a strong alias for symbol, sym.
18 #define sysio_sym_weak_alias(sym, asym) \
19 extern __typeof(sym) asym __attribute__((weak, alias(STRINGOF(sym))));
20 #else /* !defined(HAVE_ASM_WEAK_DIRECTIVE) */
23 * Weak symbols not supported. Make it a strong alias then.
25 #define sysio_sym_weak_alias(sym, asym) sysio_sym_strong_alias(sym, asym)