From 0cf92e66ed161edbb7aff4979af26be3ecd21828 Mon Sep 17 00:00:00 2001 From: davidxl Date: Tue, 11 Dec 2012 20:57:00 +0000 Subject: [PATCH] Emit weakref alias for aux modules in LIPO mode git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/google@194422 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc-4_7/gcc/varasm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc-4_7/gcc/varasm.c b/gcc-4_7/gcc/varasm.c index 138351ef782..bffe9ee6e30 100644 --- a/gcc-4_7/gcc/varasm.c +++ b/gcc-4_7/gcc/varasm.c @@ -5889,7 +5889,10 @@ assemble_alias (tree decl, tree target) tree target_decl; if (L_IPO_IS_AUXILIARY_MODULE) - return; + { + if (!lookup_attribute ("weakref", DECL_ATTRIBUTES (decl))) + return; + } if (lookup_attribute ("weakref", DECL_ATTRIBUTES (decl))) { -- 2.11.4.GIT