script_test_11a.c 400 B

12345678910111213141516171819
  1. #include "script_test_11.h"
  2. static unsigned int buffer1[256] __attribute((used));
  3. static unsigned int buffer2[256] __attribute((used)) = { 1 };
  4. unsigned int foo __attribute__((section(".foo")));
  5. extern char __foo_start;
  6. extern char __foo_end;
  7. int
  8. main (void)
  9. {
  10. if (&__foo_end - &__foo_start != sizeof(foo))
  11. return 1;
  12. if (!ptr_equal(&__foo_start, (char *)&foo))
  13. return 2;
  14. return 0;
  15. }