diff options
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-elfvers/vers21.c')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-elfvers/vers21.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-elfvers/vers21.c b/binutils-2.21/ld/testsuite/ld-elfvers/vers21.c new file mode 100644 index 0000000..2879c7f --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-elfvers/vers21.c @@ -0,0 +1,32 @@ +__asm__(".symver _old_foo,foo@VERS.0"); +__asm__(".symver _old_bar,bar@VERS.0"); +__asm__(".symver _old_foobar,foobar@VERS.0"); +__asm__(".weak _old_bar"); + +int +bar () +{ + return 1; +} + +int +_old_bar () +{ + return bar (); +} + +int +foo () +{ + return 2; +} + +int +_old_foo () +{ + return foo (); +} + +int _old_foobar = -1; + +int foobar = 1; |