diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-02-18 04:49:17 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-02-18 04:49:17 +0000 |
commit | aa3932f6994dbe2b36f9f0dbd2d51d57e7833a99 (patch) | |
tree | 05b0dfb4e986bcbe7bc1ef789adc01c0e2dd0b4b /ld | |
parent | 3b0f0b37aaf0c1ea517016a34d963fe11253364c (diff) | |
download | gdb-aa3932f6994dbe2b36f9f0dbd2d51d57e7833a99.zip gdb-aa3932f6994dbe2b36f9f0dbd2d51d57e7833a99.tar.gz gdb-aa3932f6994dbe2b36f9f0dbd2d51d57e7833a99.tar.bz2 |
2002-02-17 Daniel Jacobowitz <drow@mvista.com>
* ld-elfvsb/sh1.c: Use #pragma weak.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvsb/sh1.c | 11 |
2 files changed, 10 insertions, 5 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index f6c80f9..46112be 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,9 @@ 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. 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com> diff --git a/ld/testsuite/ld-elfvsb/sh1.c b/ld/testsuite/ld-elfvsb/sh1.c index 2299f83..a649d44 100644 --- a/ld/testsuite/ld-elfvsb/sh1.c +++ b/ld/testsuite/ld-elfvsb/sh1.c @@ -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 |