diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-12-05 17:20:59 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-12-05 17:20:59 -0800 |
| commit | a731f165df26cb7575133d549ffd2f548bb3de99 (patch) | |
| tree | 1576ba5f9bbbb493b45a3ac0a72ff5980fa5faf8 /src/rt/rust_builtin.cpp | |
| parent | 3b8bfaf5343dd13839df465cde6a4df50136ff03 (diff) | |
| download | rust-a731f165df26cb7575133d549ffd2f548bb3de99.tar.gz rust-a731f165df26cb7575133d549ffd2f548bb3de99.zip | |
test: Test hitting the dynamic linker in the red zone
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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(); |
