]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/init-term-segments.dtest/foo.c
6 #include <dispatch/dispatch.h>
15 bool* gRanTerm
= NULL
;
17 #define SUPPORT_CUSTOM_SEGMENTS !(__arm64e__ || (__arm64__ && __ARM64_ARCH_8_32__))
19 #if SUPPORT_CUSTOM_SEGMENTS
20 __attribute__((section(("__SOMETEXT,__text"))))
22 __attribute__((constructor
))
36 #if SUPPORT_CUSTOM_SEGMENTS
37 __attribute__((section(("__MORETEXT,__text"))))
39 __attribute__((destructor
))
42 if ( gRanTerm
!= NULL
)