Skip to content

Provide a way to opt into searching the default image for symbols #147

@headius

Description

@headius

In jruby/jruby#6202 we learned that the jnr-posix bootstrapping does not honor preloaded libraries as from LD_PRELOAD on Linux and DYLD_INSERT_LIBRARIES on MacOS. This prevents patch libraries like libfaketime, which hooks the standard POSIX time functions to alter their output.

A discussion of the issue is provided in wolfcw/libfaketime#255. There is no bug in libfaketime, and the current functionality of jnr-posix is not really incorrect, but it provides no way to "soften" the symbol search to try simply loading the symbol from the current process as if using RTLD_DEFAULT.

The functionality to search the default image will be provided when fixing jnr/jnr-ffi#203.

The additional work required here is to add a way to acquire a native POSIX with or without the default image being included in the symbol search.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions