aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/pr22266_a.c
blob: 7c773db5466e8ef775372ac20f83f3ded297b2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
__attribute__((section(".data.a")))
static int int_from_a_1 = 0x11223344;

__attribute__((section(".data.rel.ro.a")))
int *p_int_from_a_2 = &int_from_a_1;

const char *hello (void);

const char *
hello (void)
{
  return "XXXHello, world!" + 3;
}