]>
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
))
35 #if SUPPORT_CUSTOM_SEGMENTS
36 __attribute__((section(("__MORETEXT,__text"))))
38 __attribute__((destructor
))
41 if ( gRanTerm
!= NULL
)