Skip to content

Commit d8ea42a

Browse files
committed
Bump backward compatibility to 5.3
1 parent 07596cb commit d8ea42a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/runtime/CompatibilityOverride.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ using namespace swift;
2727
/// The definition of the contents of the override section.
2828
///
2929
/// The runtime looks in the main executable (not any libraries!) for a
30-
/// __swift52_hooks section and uses the hooks defined therein. This struct
30+
/// __swift53_hooks section and uses the hooks defined therein. This struct
3131
/// defines the layout of that section. These hooks allow extending
3232
/// runtime functionality when running apps built with a more recent
3333
/// compiler. If additional hooks are needed, they may be added at the
@@ -52,7 +52,7 @@ static OverrideSection *getOverrideSectionPtr() {
5252
swift_once(&Predicate, [](void *) {
5353
size_t Size;
5454
OverrideSectionPtr = static_cast<OverrideSection *>(
55-
lookupSection("__DATA", "__swift52_hooks", &Size));
55+
lookupSection("__DATA", "__swift53_hooks", &Size));
5656
if (Size < sizeof(OverrideSection))
5757
OverrideSectionPtr = nullptr;
5858
}, nullptr);

unittests/runtime/CompatibilityOverride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct OverrideSection {
6060
#include "../../stdlib/public/runtime/CompatibilityOverride.def"
6161
};
6262

63-
OverrideSection Overrides __attribute__((section("__DATA,__swift52_hooks"))) = {
63+
OverrideSection Overrides __attribute__((section("__DATA,__swift53_hooks"))) = {
6464
0,
6565
#define OVERRIDE(name, ret, attrs, ccAttrs, namespace, typedArgs, namedArgs) \
6666
name ## Override,

0 commit comments

Comments
 (0)