2002-02-17 Daniel Jacobowitz <drow@mvista.com>
* ld-elfvsb/sh1.c: Use #pragma weak.
This commit is contained in:
parent
3b0f0b37aa
commit
aa3932f699
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
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.
|
||||
|
|
|
@ -180,6 +180,9 @@ shlib_check ()
|
|||
#endif
|
||||
|
||||
#if defined (HIDDEN_UNDEF_TEST) || defined (PROTECTED_UNDEF_TEST)
|
||||
#ifdef WEAK_TEST
|
||||
#pragma weak visibility
|
||||
#endif
|
||||
extern int visibility ();
|
||||
#else
|
||||
int
|
||||
|
@ -243,6 +246,9 @@ visibility_funptr ()
|
|||
}
|
||||
|
||||
#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;
|
||||
|
@ -317,8 +323,3 @@ asm (".protected visibility");
|
|||
asm (".protected visibility_var");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef WEAK_TEST
|
||||
asm (".weak visibility");
|
||||
asm (".weak visibility_var");
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue