* ld-elfvsb/sh1.c: Use #pragma weak.
+2002-02-17 Daniel Jacobowitz <drow@mvista.com>
+
+ * ld-elfvsb/sh1.c: Use #pragma weak.
+
2002-02-17 Daniel Jacobowitz <drow@mvista.com>
* vers.exp: Do not call diff -q.
#endif
#if defined (HIDDEN_UNDEF_TEST) || defined (PROTECTED_UNDEF_TEST)
+#ifdef WEAK_TEST
+#pragma weak visibility
+#endif
extern int visibility ();
#else
int
}
#if defined (HIDDEN_UNDEF_TEST) || defined (PROTECTED_UNDEF_TEST)
+#ifdef WEAK_TEST
+#pragma weak visibility_var;
+#endif
extern int visibility_var;
#else
int visibility_var = 2;
asm (".protected visibility_var");
#endif
#endif
-
-#ifdef WEAK_TEST
-asm (".weak visibility");
-asm (".weak visibility_var");
-#endif