aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr23161b.c
blob: 0112f771b19c99d51b5aab7e6c73aad1f30ea04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
static char *_edata_p;
static char *_end_p;
static char *__bss_start_p;
extern char *_end;
extern char *_edata;
extern char *__bss_start;

extern int foo (void);

void
bar (void)
{
  _edata_p = (char*) &_edata;
  _end_p = (char*) &_end;
  __bss_start_p = (char*) &__bss_start;
}

void
_start ()
{
  bar ();
  foo ();
}