aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvsb/test.c
blob: d2210accc62124eaad742a5e9fcaaf457a4456ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma weak main_hidden_data
extern int main_hidden_data;
__asm__ (".hidden main_hidden_data");
 
#pragma weak main_hidden_func
extern int main_hidden_func ();
__asm__ (".hidden main_hidden_func");

int
_start (void)
{
  int ret = 0;

  if (&main_hidden_data != 0)
    ret = 1;
  if (main_hidden_func != 0)
    ret = 1;

  return ret;
}

int
__start (void)
{
  return _start ();
}