aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers/vers21.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elfvers/vers21.c')
-rw-r--r--ld/testsuite/ld-elfvers/vers21.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ld/testsuite/ld-elfvers/vers21.c b/ld/testsuite/ld-elfvers/vers21.c
index 3a75b48..4a994a1 100644
--- a/ld/testsuite/ld-elfvers/vers21.c
+++ b/ld/testsuite/ld-elfvers/vers21.c
@@ -1,9 +1,8 @@
#include "vers.h"
-SYMVER(_old_foo, foo@VERS.0);
-SYMVER(_old_bar, bar@VERS.0);
+FUNC_SYMVER(_old_foo, foo@VERS.0);
+FUNC_SYMVER(_old_bar, bar@VERS.0);
SYMVER(_old_foobar, foobar@VERS.0);
-__asm__(".weak " SYMPFX(_old_bar));
int
bar ()
@@ -11,7 +10,7 @@ bar ()
return 1;
}
-int
+int __attribute__ ((weak))
_old_bar ()
{
return bar ();