aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers/vers24c.c
blob: 267c4243b566a3206266023191ce637720f658b2 (plain)
1
2
3
4
5
6
7
8
9
/* Test whether .symver x, x@foo
   causes relocations against x within the same shared library
   to become dynamic relocations against x@foo.  */
int x = 12;
__asm__ (".symver x, x@VERS.0");
void foo (void)
{
  x = 24;
}