pr14265.c 505 B

1234567891011121314151617181920
  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. extern unsigned long __foo0_start;
  5. extern unsigned long __foo0_end;
  6. extern unsigned long __foo1_start;
  7. extern unsigned long __foo1_end;
  8. extern unsigned long __foo2_start;
  9. extern unsigned long __foo2_end;
  10. int
  11. main (void)
  12. {
  13. return ((__foo0_end - __foo0_start) -
  14. (__foo1_end - __foo1_start) -
  15. (__foo2_end - __foo2_start));
  16. }