intoli / exodus

Painless relocation of Linux binaries–and all of their dependencies–without containers.
Other
2.94k stars 71 forks source link

Dynamic discovery of dlopen'ed libraries? #54

Closed piec closed 6 years ago

piec commented 6 years ago

Hi,

Thanks for making this tool.

Do you plan to add a feature to trace a running binary on the host system and create a list of dynamically loaded libraries? It could create automatically the necessary --add based on an execution.

CDE (github, manual) does that, or rather did that because it's not been updated for a while.

Cheers, Pierre

sangaline commented 6 years ago

This functionality is actually already supported by Exodus to some extent. You can pipe the output of strace into Exodus and it will automatically include the dynamically loaded libraries and other file resources. For example, you can run something like this.

strace -f my-command 2>&1 | exodus my-command

Does that cover your use case?

piec commented 6 years ago

Yes great :+1: , sorry I hadn't noticed it when first browsing the Readme