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

feat(macho): allow to create DynamicSymbolCommand in Python #924

Merged
merged 2 commits into from
Jun 21, 2023

Conversation

LouisBrunner
Copy link
Contributor

I created a static function (createForPython) to avoid messing with the implementation of the default constructor.

Copy link
Member

@romainthomas romainthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get the idea behinds this PR and I'll handle the integration in the next couple of days.

@@ -48,6 +48,8 @@ class LIEF_API DynamicSymbolCommand : public LoadCommand {

DynamicSymbolCommand(const details::dysymtab_command& cmd);

static DynamicSymbolCommand createForPython();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Core header files should not expose Python specific function :)

@romainthomas
Copy link
Member

Let me know if 1a69a1b would be ok.

@romainthomas
Copy link
Member

ping @LouisBrunner

@LouisBrunner
Copy link
Contributor Author

Hey, sorry for the delay.

It's not possible for me to test running an actual binary without all the other changes for MainCommand, etc, however from otool's output it looks like it's working.

@romainthomas romainthomas merged commit 85518ff into lief-project:master Jun 21, 2023
3 checks passed
@LouisBrunner LouisBrunner deleted the feature/dysym-command branch June 21, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants