Gives aop_finish "default" (public) visibilty.
authorJustin Seyster <jseyster@cs.sunysb.edu>
Tue, 12 Apr 2011 23:43:46 +0000 (19:43 -0400)
committerJustin Seyster <jseyster@cs.sunysb.edu>
Tue, 12 Apr 2011 23:43:46 +0000 (19:43 -0400)
On some Linux versions, the setting a symbol as both hidden and weak
caused problems when trying to link an InterAspect plug-in.

src/aop-main.c

index d5b2baeca2acca06ef67ed1edddc966a3a1af959..5277bab538731c8409bf8bcb3b07086af3675406 100644 (file)
@@ -268,7 +268,8 @@ register_pass_init ()
 }
 
 /* Provided for overriding in the client plug-in.  See aop.h. */
-__attribute__((weak)) __attribute__((noinline)) void
+__attribute__((visibility("default"))) __attribute__((weak))
+__attribute__((noinline)) void
 aop_finish ()
 {
   /* This function exists only to be overridden. */