Skip to content

Be able to do a "dlsym(0, decorated_name)"-type access of pre-loaded plugin so #13

Closed
@rpavlik

Description

@rpavlik

In the case where some external entity has already loaded the shared library plugins into the address space for us, it would be good to have API to essentially (in libdl terms here) wrap

dlsym(nullptr, "libfunc_ep_" + pluginname); // the expression in the latter argument is the runtime form of LIBFUNC_DETAIL_EP_NAME(PLUGINNAME)

It would only initially work on non-DLL (non-Windows) platforms where all symbols get exported (since Windows we only currently export the single commonly-named trampoline entry point), but since it would be most useful in weird/constrained deployment scenarios (think Android) - that would be OK.

cc @JeroMiya

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions