On 2011-05-11 10:13 AM, Emmanuel Deloget wrote:
On 05/10/2011 07:03 PM, Felix Fietkau wrote:
On 2011-05-10 3:37 PM, Emmanuel Deloget wrote:
Hello,
I'm facing an interesting porting challenge : one of the program which
is to be installed on our target is compressed using upx. As you may
know, upx-compressed programs are not to be stripped (strip removes
everything but the stub, resulting in a 300 bytes program that does
nothing but crashing ; that's not very usefull).
Why do you want to compress your binary using upx in the first place?
I think squashfs-lzma might compress better than upx, and it's certainly
better at caching and startup time.
Hard question. There is a reason - the simplest of all : I have been
asked to do this, and I'm not in a position where I can discuss a
requirement. I understand that it doesn't help much. I suspect this goes
farther than just compress the binary (upx compresses using lzma, the fs
is also lzma-compressed, and lzma(lzma(X))>= lzma(X) most of the time).
It would make sense to at least try to discuss this requirement, as it
seems to be a rather stupid one.
If you absolutely must disable stripping for your package, you could add
a line:
RSTRIP := true
somewhere below the 'include' lines. That should disable stripping for
the entire package.
- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel