(root)/
binutils-2.41/
ld/
testsuite/
ld-gc/
pr14265.c
       1  int foo0 __attribute__((used,section(".foo0.0")));
       2  int foo1 __attribute__((used,section(".foo1.0")));
       3  int foo2 __attribute__((used,section(".foo2.0")));
       4  
       5  extern unsigned long    __foo0_start;
       6  extern unsigned long    __foo0_end;
       7  
       8  extern unsigned long    __foo1_start;
       9  extern unsigned long    __foo1_end;
      10  
      11  extern unsigned long    __foo2_start;
      12  extern unsigned long    __foo2_end;
      13  
      14  int
      15  main (void)
      16  {
      17    return ((__foo0_end - __foo0_start) -
      18  	  (__foo1_end - __foo1_start) -
      19  	  (__foo2_end - __foo2_start));
      20  }