Skip to content

Commit

Permalink
Adjust to fixes for linux
Browse files Browse the repository at this point in the history
Libraries can now contain a vtable section
  • Loading branch information
drmeister committed Nov 29, 2024
1 parent 88550de commit b2f2dbb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/debug_macosx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<gctools::clasp_ptr_t>(library_origin),
reinterpret_cast<gctools::clasp_ptr_t>(library_origin),
reinterpret_cast<gctools::clasp_ptr_t>(library_origin + text_segment_size), found,
reinterpret_cast<gctools::clasp_ptr_t>(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<gctools::clasp_ptr_t>(library_origin),
reinterpret_cast<gctools::clasp_ptr_t>(library_origin),
reinterpret_cast<gctools::clasp_ptr_t>(library_origin + text_segment_size));
reinterpret_cast<gctools::clasp_ptr_t>(library_origin + text_segment_size),
found,
(gctools::clasp_ptr_t)vtableRegionStart, (gctools::clasp_ptr_t)vtableRegionEnd);
}
if (callback)
(*callback)(odli);
Expand Down

0 comments on commit b2f2dbb

Please sign in to comment.