aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/reloc.c
blob: ccc03ecb7ab508d8debe5900d539b36aceae0eeb (plain) (blame)
1
2
3
4
5
6
7
8
9


const void *const relro = &relro;

float get_value(unsigned x)
{
   static const float values [] = {1.1f, 1.2f, 1.3f, 1.4f};
   return x < 4 ? values[x] : 0.0f;
}