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

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

void
_start ()
{
  bar ();
}