File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 33
33
#if __has_include(<objc/objc-internal.h>) && __has_include(<mach-o/dyld_priv.h>)
34
34
#include < mach-o/dyld_priv.h>
35
35
#include < objc/objc-internal.h>
36
+
37
+ // Redefine _dyld_lookup_section_info as weak so we can build against it but
38
+ // still run when it's not present at runtime. Note that we don't have to check
39
+ // for its presence at runtime, as it's guaranteed to be available if we get
40
+ // the callbacks from objc_addLoadImageFunc2.
41
+ LLVM_ATTRIBUTE_WEAK
42
+ struct _dyld_section_info_result
43
+ _dyld_lookup_section_info (const struct mach_header *mh,
44
+ _dyld_section_location_info_t locationHandle,
45
+ enum _dyld_section_location_kind kind);
36
46
#else
37
47
38
48
// Bring our own definition of enum _dyld_section_location_kind and some of its
You can’t perform that action at this time.
0 commit comments