Index: lib/safestack/safestack.cc =================================================================== --- lib/safestack/safestack.cc +++ lib/safestack/safestack.cc @@ -257,11 +257,20 @@ #endif extern "C" - __attribute__((visibility("default"))) void *__get_unsafe_stack_start() { + __attribute__((visibility("default"))) void *__get_unsafe_stack_bottom() { return unsafe_stack_start; } extern "C" + __attribute__((visibility("default"))) void *__get_unsafe_stack_top() { + return (char*)unsafe_stack_start + unsafe_stack_size; +} + +extern "C" + __attribute__((visibility("default"), alias("__get_unsafe_stack_bottom"))) + void *__get_unsafe_stack_start(); + +extern "C" __attribute__((visibility("default"))) void *__get_unsafe_stack_ptr() { return __safestack_unsafe_stack_ptr; }