Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List all loadable symbols in dylib #82

Open
bugdea1er opened this issue Mar 14, 2024 · 2 comments
Open

List all loadable symbols in dylib #82

bugdea1er opened this issue Mar 14, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@bugdea1er
Copy link

Hi there!

In my use case, I need to load multiple dylibs globally at the same time. I want to be able to check if these dylibs have conflicting symbols, so I need a way to list all defined exported symbols to compare them with other libs I want to load.

Something similar can be done using dlinfo on Linux, but I need a cross-platform solution.

What do you think?

@martin-olivier martin-olivier self-assigned this May 2, 2024
@martin-olivier martin-olivier added the enhancement New feature or request label May 2, 2024
@martin-olivier
Copy link
Owner

Hello @bugdea1er,

Yes, it is the next feature i wanted to implement:

std::vector<std::string> symbols(const std::string &section = "");

I will start working on that soon.

@martin-olivier
Copy link
Owner

Hello @bugdea1er,

Sorry for the long delay, I have implemented the listing of symbols in the dev branch.

Currently, It has a boolean parameter 'demangle' if you want to get raw or demangled symbols name.

I will also add soon another parameter 'loadable' that will return only symbols that can be loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants