diff --git a/stdlib/public/runtime/CompatibilityOverride.cpp b/stdlib/public/runtime/CompatibilityOverride.cpp index 09122d08212b6..3eebb8581ff24 100644 --- a/stdlib/public/runtime/CompatibilityOverride.cpp +++ b/stdlib/public/runtime/CompatibilityOverride.cpp @@ -27,7 +27,7 @@ using namespace swift; /// The definition of the contents of the override section. /// /// The runtime looks in the main executable (not any libraries!) for a -/// __swift51_hooks section and uses the hooks defined therein. This struct +/// __swift52_hooks section and uses the hooks defined therein. This struct /// defines the layout of that section. These hooks allow extending /// runtime functionality when running apps built with a more recent /// compiler. If additional hooks are needed, they may be added at the @@ -51,9 +51,8 @@ static OverrideSection *getOverrideSectionPtr() { static swift_once_t Predicate; swift_once(&Predicate, [](void *) { size_t Size; - OverrideSectionPtr = static_cast(lookupSection("__DATA", - "__swift51_hooks", - &Size)); + OverrideSectionPtr = static_cast( + lookupSection("__DATA", "__swift52_hooks", &Size)); if (Size < sizeof(OverrideSection)) OverrideSectionPtr = nullptr; }, nullptr); diff --git a/unittests/runtime/CompatibilityOverride.cpp b/unittests/runtime/CompatibilityOverride.cpp index 897490a2a480c..dc7d57e2cad68 100644 --- a/unittests/runtime/CompatibilityOverride.cpp +++ b/unittests/runtime/CompatibilityOverride.cpp @@ -60,7 +60,7 @@ struct OverrideSection { #include "../../stdlib/public/runtime/CompatibilityOverride.def" }; -OverrideSection Overrides __attribute__((section("__DATA,__swift51_hooks"))) = { +OverrideSection Overrides __attribute__((section("__DATA,__swift52_hooks"))) = { 0, #define OVERRIDE(name, ret, attrs, ccAttrs, namespace, typedArgs, namedArgs) \ name ## Override,