Skip to content

Commit

Permalink
Delete dead FEATURE_READONLY_GS_COOKIE support for Apple (dotnet#99225
Browse files Browse the repository at this point in the history
)

This is now dead.
  • Loading branch information
MichalStrehovsky authored Mar 4, 2024
1 parent 962d15c commit 8519119
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/coreclr/nativeaot/Runtime/startup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ typedef size_t GSCookie;

#ifdef FEATURE_READONLY_GS_COOKIE

#ifdef __APPLE__
#define READONLY_ATTR_ARGS section("__DATA,__const")
#else
#define READONLY_ATTR_ARGS section(".rodata")
#endif
#define READONLY_ATTR __attribute__((READONLY_ATTR_ARGS))
#define READONLY_ATTR __attribute__((section(".rodata")))

// const is so that it gets placed in the .text section (which is read-only)
// volatile is so that accesses to it do not get optimized away because of the const
Expand Down

0 comments on commit 8519119

Please sign in to comment.