From a731f165df26cb7575133d549ffd2f548bb3de99 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 5 Dec 2011 17:20:59 -0800 Subject: test: Test hitting the dynamic linker in the red zone --- src/rt/rust_builtin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/rt/rust_builtin.cpp') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 41c8bc68d2b..dd5831c2917 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -273,6 +273,12 @@ debug_ptrcast(type_desc *from_ty, return ptr; } +extern "C" CDECL void * +debug_get_stk_seg() { + rust_task *task = rust_scheduler::get_task(); + return task->stk; +} + extern "C" CDECL rust_vec* rust_list_files(rust_str *path) { rust_task *task = rust_scheduler::get_task(); -- cgit 1.4.1-3-g733a5