summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/ld/testsuite/ld-elfvers/vers24c.c
blob: 6e69b334ba1d94f9a02f58f74bdc3ceba097f17c (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test whether .symver x, x@foo
   causes relocations against x within the same shared library
   to become dynamic relocations against x@foo.  */
#include "vers.h"

int x = 12;
SYMVER(x, x@VERS.0);
void foo (void)
{
  x = 24;
}