从可执行删除所有符号表和重定位信息的影响? [英] Effects of removing all symbol table and relocation information from an executable?
问题描述
编译使用 GCC -s
和Unix的的 条
从可执行文件中删除所有符号表和重定位信息(在尺寸使它更小)。
Compilation using gcc -s
and Unix strip
remove all symbol table and relocation information from an executable (making it smaller in size).
难道这个不断影响可执行文件的功能?做一些操作系统而进行的 ASLR 需要这些信息?如果不是,为什么首先让他们身边?
Could this ever affect the functioning of the executable? Do some operating systems which perform ASLR need this information? If not, why keep them around in the first place?
一个slightly-的详细以上概述将是有益的。
A slightly-detailed overview of the above would be helpful.
推荐答案
这似乎pretty清楚,去掉重定位信息将与ASLR干扰。
It seems pretty clear that removing relocation information would interfere with ASLR.
不过,我已经采取了看看男人条
一对夫妇我的系统,他们都不建议条
做(或的确可以?)删除重定位信息。它主要是有关删除调试符号。
However, I've taken a look at man strip
on a couple of my systems, and none of them suggest that strip
does (or indeed can?) remove relocation information. It is mainly about removing debugging symbols.
这篇关于从可执行删除所有符号表和重定位信息的影响?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!