如何从__TEXT切入到适用于mach-o二进制文件的新段中? [英] How can I sections out of __TEXT and into a new segment for a mach-o binary?
本文介绍了如何从__TEXT切入到适用于mach-o二进制文件的新段中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将节从__TEXT
段移出并移至用于mach-o二进制文件的新段中?我问的原因是我正在尝试使iPhone应用程序更小,并且iOS App Store在压缩前先对其__TEXT
段进行加密,以使其完全不压缩.如果我可以将所有不可执行的部分移出该段并移到新的只读段中,则可以将应用程序的大小减少约9%.
How can I move sections out of the __TEXT
segment and into a new segment for a mach-o binary? The reason I'm asking is that I'm trying to make my iPhone app smaller, and the iOS App Store encrypts the __TEXT
segment of it prior to compression so that it doesn't compress at all. If I can move all the non-executable sections out of that segment and into a new read-only segment, then I can trim the size of my app by about 9%.
推荐答案
ld
的-rename_section
标志完成该工作.
这篇关于如何从__TEXT切入到适用于mach-o二进制文件的新段中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文