Re:micro – A Modern Alternative to nano
by xyproto on Friday August 18, 2023 @09:37AM
(#37175443)
gccgo + upx can reduce the size of Go executables considerably, usually below 1M.
[ Parent
| on HN ]
note that it does not reduce the memory size once loaded (and even prevents sharing pages when several instances are run since memory is written when decompressed, not read as a program binary is)
Re:micro – A Modern Alternative to nano
by londons_explore on Friday August 18, 2023 @10:29AM
(#37176142)
> even prevents sharing pages when several instances are run since memory is written when decompressed, not read as a program binary
A shame the linux kernel doesn't have some way for packers to say "I am a packer, I run with access to nothing except the binary, therefore run me with no permissions and then share the pages I make with any user that executes me. If you like, you can even delete my output and reunpack me on-demand"