From b2f2dbbc166ad6bf836598accf2b30a8d97a8794 Mon Sep 17 00:00:00 2001 From: Christian Schafmeister Date: Fri, 29 Nov 2024 14:46:43 -0500 Subject: [PATCH] Adjust to fixes for linux Libraries can now contain a vtable section --- src/core/debug_macosx.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/debug_macosx.cc b/src/core/debug_macosx.cc index a40fb175e9..fde07be9e2 100644 --- a/src/core/debug_macosx.cc +++ b/src/core/debug_macosx.cc @@ -350,12 +350,15 @@ void add_dynamic_library_impl(add_dynamic_library* callback, bool is_executable, if (is_executable) { odli = new ExecutableLibraryInfo(libraryName, handle, symbol_table, reinterpret_cast(library_origin), reinterpret_cast(library_origin), - reinterpret_cast(library_origin + text_segment_size), found, + reinterpret_cast(library_origin + text_segment_size), + found, (gctools::clasp_ptr_t)vtableRegionStart, (gctools::clasp_ptr_t)vtableRegionEnd); } else { odli = new OpenDynamicLibraryInfo(libraryName, handle, symbol_table, reinterpret_cast(library_origin), reinterpret_cast(library_origin), - reinterpret_cast(library_origin + text_segment_size)); + reinterpret_cast(library_origin + text_segment_size), + found, + (gctools::clasp_ptr_t)vtableRegionStart, (gctools::clasp_ptr_t)vtableRegionEnd); } if (callback) (*callback)(odli);