summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vlad@tsyrklevich.net>2018-07-13 20:56:48 +0000
committerVlad Tsyrklevich <vlad@tsyrklevich.net>2018-07-13 20:56:48 +0000
commit3b0b1758204f24c622fc59812e4dba2813dfa19d (patch)
tree91a933daf51e4d7f09f3d4b290e94ef72d522a25 /lib
parent5625d7ef61d8af9bb5eceb979738c88a07fddb24 (diff)
Fix for Darwin buildbot failure due to r337037
Duplicate __get_unsafe_stack_bottom instead of using an alias for platforms that don't suppport it like Darwin. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@337044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/safestack/safestack.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/safestack/safestack.cc b/lib/safestack/safestack.cc
index cc6d81b2e..8af93624b 100644
--- a/lib/safestack/safestack.cc
+++ b/lib/safestack/safestack.cc
@@ -267,8 +267,9 @@ extern "C"
}
extern "C"
- __attribute__((visibility("default"), alias("__get_unsafe_stack_bottom")))
- void *__get_unsafe_stack_start();
+ __attribute__((visibility("default"))) void *__get_unsafe_stack_start() {
+ return unsafe_stack_start;
+}
extern "C"
__attribute__((visibility("default"))) void *__get_unsafe_stack_ptr() {