Create a gist now

Instantly share code, notes, and snippets.

diff --git a/vm.c b/vm.c
index f961196..0982909 100644
--- a/vm.c
+++ b/vm.c
@@ -481,6 +481,7 @@ vm_collect_local_variables_in_heap(rb_thread_t *th, VALUE *ep, VALUE ary)
static void vm_rewrite_ep_in_errinfo(rb_thread_t *th);
+__attribute__ ((visibility ("default")))
rb_vm_make_env_object(rb_thread_t * th, rb_control_frame_t *cfp)
diff --git a/vm_backtrace.c b/vm_backtrace.c
index bfd3adf..203dfff 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -28,6 +28,7 @@ calc_lineno(const rb_iseq_t *iseq, const VALUE *pc)
return rb_iseq_line_no(iseq, pc - iseq->iseq_encoded);
+__attribute__ ((visibility ("default")))
rb_vm_get_sourceline(const rb_control_frame_t *cfp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment