(root)/
binutils-2.41/
ld/
testsuite/
ld-gc/
pr19161-2.c
       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
       8  dump()
       9  {
      10     int* ap = &__start_my_section;
      11     return ap[0];
      12  }
      13  
      14  void 
      15  __attribute__((constructor))
      16  foo()
      17  {
      18    p = dump;
      19  }