Skip to content

Commit a976221

Browse files
authored
Merge pull request #64696 from bnbarham/revert-redeclare-weak
Revert "[Runtime] Redeclare _dyld_lookup_section_info as weak."
2 parents 95a92fd + 20ba612 commit a976221

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

stdlib/public/runtime/ImageInspectionMachO.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@
3333
#if __has_include(<objc/objc-internal.h>) && __has_include(<mach-o/dyld_priv.h>)
3434
#include <mach-o/dyld_priv.h>
3535
#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);
4636
#else
4737

4838
// Bring our own definition of enum _dyld_section_location_kind and some of its

0 commit comments

Comments
 (0)