去掉符号的最佳方法 [英] Best way to strip off symbols

查看:226
本文介绍了去掉符号的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周,我发布了Linux和Windows版本的应用程序。

和发布后,我们意识到,这些符号没有剥离,和我的经理认为(我不同意),这可能让用户了解我们的算法。

反正现在,我将不得不清理的符号和重新发布该应用程序。

我的问题,


  1. 什么是Linux中剥离符号的最佳方式?

  2. 什么是在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,

  1. What is the best way to strip symbols in Linux?
  2. 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屋!

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