From 3b0b1758204f24c622fc59812e4dba2813dfa19d Mon Sep 17 00:00:00 2001 From: Vlad Tsyrklevich Date: Fri, 13 Jul 2018 20:56:48 +0000 Subject: 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 --- lib/safestack/safestack.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') 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() { -- cgit v1.2.3