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