去掉符号的最佳方法 [英] Best way to strip off symbols
问题描述
上周,我发布了Linux和Windows版本的应用程序。
和发布后,我们意识到,这些符号没有剥离,和我的经理认为(我不同意),这可能让用户了解我们的算法。
反正现在,我将不得不清理的符号和重新发布该应用程序。
我的问题,
- 什么是Linux中剥离符号的最佳方式?
- 什么是在Windows中剥离符号的最佳方式?
通过在Windows上的Visual C ++(和其他Microsoft编译器),符号不是二进制文件的一部分。相反,它们被存储在一个名为程序数据库文件(.pdb文件)单独的文件。只是不提供.pdb文件。
使用你会使用带GNU工具链
来从二进制文件中删除符号。
Last week I released the Linux and windows version of an application.
And after the release we realized that the symbols were not stripped off, and my manager thinks (and I disagree) that it might allow the user to understand our algorithm.
Anyway, now, I will have to clean-up the symbols and re-release the application.
My question,
- What is the best way to strip symbols in Linux?
- What is the best way to strip symbols in Windows?
With Visual C++ (and other Microsoft compilers) on Windows, symbols aren't part of the binaries. Instead, they are stored in separate files called "Program Database" files (.pdb files). Just don't provide the .pdb files.
With the GNU toolchain you would use strip
to remove symbols from the binaries.
这篇关于去掉符号的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!