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