从可执行删除所有符号表和重定位信息的影响? [英] Effects of removing all symbol table and relocation information from an executable?

查看:703
本文介绍了从可执行删除所有符号表和重定位信息的影响?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编译使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆