aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-12-05 08:13:19 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-12-05 08:13:19 +0000
commite4105c76a843423e4aa50a91db71d39d6881e5aa (patch)
tree9c1ea50f1475a1824dfe573e70bcef5debe9f359 /localdecls.h
parentStop processing when we get to the '.symtab' section. (diff)
downloadsandbox-e4105c76a843423e4aa50a91db71d39d6881e5aa.tar.gz
sandbox-e4105c76a843423e4aa50a91db71d39d6881e5aa.tar.bz2
sandbox-e4105c76a843423e4aa50a91db71d39d6881e5aa.zip
Also add weak symbols.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'localdecls.h')
-rw-r--r--localdecls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/localdecls.h b/localdecls.h
index ab6b8d7..938c20e 100644
--- a/localdecls.h
+++ b/localdecls.h
@@ -55,6 +55,8 @@
/* Taken from glibc */
# define strong_alias(_name, _aliasname) \
extern __typeof (_name) _aliasname __attribute__ ((alias (#_name)));
+# define weak_alias(_name, _aliasname) \
+ extern __typeof (_name) _aliasname __attribute__ ((weak, alias (#_name)));
#endif