UPX now supports Rust binaries linked with mold

52 points promethe42

Hello there!

mold is a great alternative linker known for its speed. It helps iterating faster on (large) Rust project by multi-threading the linking process.

upx is a post-build tool that compresses binaries. It gives incredible results. For example, one of my release + LTO stipped binary shrinks from 100+MB to 19MB.

Until know, it was not possible to run upx on binaries linked with mold. I raised the problem a few days ago:

https://github.com/rust-lang/rust/issues/100859#issuecomment-2405180934

Thanks to the amazing community effort, the upx developer apparently just resolved the issue and added mold + upx support:

https://github.com/rust-lang/rust/issues/100859#issuecomment-2438187756

Please test it and provide feedback!