test: Test hitting the dynamic linker in the red zone

This commit is contained in:
Brian Anderson 2011-12-05 17:20:59 -08:00
parent 3b8bfaf534
commit a731f165df
4 changed files with 91 additions and 3 deletions

View file

@ -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();