suve / copydeps

Find and copy all the .so / .dll files required by an executable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recursive folder search

ryancinsight opened this issue · comments

How difficult do you think it would be to modify this to recursively search folders including executable directly and not only get dependencies for exe but dlls that are in that folder and subfolders as well for windows?

Windows dumpbin /dependents for example can do exe's and dll dependencies.

commented

Sorry for not responding to this back in the day.

I think recursive search is something that definitely should be added to the program. While it would be simple enough to do this for PE executables, I'm not too sure how the dynamic linker works on Linux and would need to delve a bit into the topic to figure out whether recursion is performed always, or if there are some extra conditions.

Hi Suve ✋, I thought it may be too niche but I’m glad you find it as something that could be added.
I started a simple proof of concept using the goblin crate as well but haven’t modified or tested for/on Linux. Mostly I’m creating a hashmap of what is present and what is called, filtering duplicates, and trying to find not found ones. https://github.com/ryancinsight/depwalker I’m using with pyoxidizer crate so I’m also reading Python pyd files which are similar to dll files.

for further background, pyoxidizer aims to create portable Python executables and this is why I’m aiming for recursive reading since Python packages are split into folders etc...