diff --git a/include/ircd/mods/ldso.h b/include/ircd/mods/ldso.h index f765e69e5..4cacd3848 100644 --- a/include/ircd/mods/ldso.h +++ b/include/ircd/mods/ldso.h @@ -41,6 +41,7 @@ namespace ircd::mods::ldso string_view name(const struct link_map &); // z semantic_version version(const string_view &soname); // 1.0.0 semantic_version version(const struct link_map &map); // 1.0.0 + const void *addr(const struct link_map &); // 0x7ffff... // Iteration bool for_each(const link_closure &); diff --git a/ircd/mods_ldso.cc b/ircd/mods_ldso.cc index 09752f21a..dc09b9e6d 100644 --- a/ircd/mods_ldso.cc +++ b/ircd/mods_ldso.cc @@ -223,6 +223,12 @@ ircd::mods::ldso::for_each(const link_closure &closure) return true; } +const void * +ircd::mods::ldso::addr(const struct link_map &map) +{ + return reinterpret_cast(map.l_addr); +} + ircd::mods::ldso::semantic_version ircd::mods::ldso::version(const struct link_map &map) {