From 55a755daff1c48af4011f3d567df4fee6162ec6e Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 28 Dec 2014 19:26:32 -0600 Subject: [PATCH] define __weak_alias --- include/sys/types.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/sys/types.h b/include/sys/types.h index 248cf24..3588e4d 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -18,6 +18,12 @@ #define __dead #endif +#if !defined(HAVE_ATTRIBUTE__WEAK_ALIAS) && !defined(__weak_alias) +#define __weak_alias(alias,sym) \ + __asm__(".weak " __STRING(alias) " ; " \ + __STRING(alias) " = " __STRING(sym)) +#endif + #if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__) # define __bounded__(x, y, z) #endif