Skip to content
/ dllpatch Public

CLI util: Poor man's rpath for Windows executables.

License

Notifications You must be signed in to change notification settings

iboB/dllpatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dllpatch.exe

License Build status

Created for my blog post The Search for Auto-Loaded DLLs and Windows rpath

Changes the name of a DLL linked with a binary. Used as a poor man's substitute for rpath on Windows.

For example you can make demo.exe search for foo.dll in a relative path (subdirectory\foo.dll) or an absolute one (c:\dir\foo.dll).

The implementation is pretty simple (for now?). If only replaces DLL names if the new one can fit. To make it work with a long new name, you have to provide a long old name, renaming foo.dll to something-extra-extra-long-because-i-need-the-space-for-a-long-path.dll.

For an example demo see the enclosed run-demo.bat.

About

CLI util: Poor man's rpath for Windows executables.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published