Skip to content

How to add some functions from my so library to the imports of a third party executable ? #629

Description

@beketata

Hello everyone!

I have a third-party executable and want to patch some of its internal functions (not imported from any library).
For this I create my own library with those rewritten methods and they could be called from executable with dlopen and dlsym. Unfortunately, the imports of executable does not have the dlopen and dlsym methods.

After some searching I found this project and planned to use the --add-needed option.
It only adds my library to the executable, but not its exported functions.
So, how do I call them from the executable?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions