1int __attribute__((section("my_section"))) a[2] = {0x1234, 0x5678};
2
3extern int __start_my_section;
4
5extern int (*p)(void);
6
7int
8dump()
9{
10   int* ap = &__start_my_section;
11   return ap[0];
12}
13
14void
15__attribute__((constructor))
16foo()
17{
18  p = dump;
19}
20