Skip to content

stong/static.py

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

static.py

What does it do?

You give it a dynamically linked binary and it will make a directory that has all the dependencies (recursively). It also fixes the ld interpreter and libc paths so it will not segfault

How does it work?

It recursively calls ldd and copies all the required .so files. Then, it also needs to patch up the ld interpreter so it will not try to use the system ld rather than the one copied from the source host.

How do I use it

For example, making a redistributable imagemagick:

./lmao.py /usr/bin/convert

Should I use this in production?

Yes and please email me so I can short your company stock. (Not financial advice btw)

About

Makes dynamic linked shit "static". Amazing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages