Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为 ubuntu x86_64 安装了 build-essential 包,编译 c 程序和 c++ 程序工作正常,但在编译的二进制文件中,出现“Ubuntu linaro”。有没有办法删除这个?
您可以使用十六进制编辑器将其删除。我可以问你为什么要删除它?
如果您可以弄清楚该字符串在哪个部分(可能是.comment?),您可以使用
strip -R .comment (or whatever section name)
从二进制文件中删除该部分。
x86 的 Ubuntu 10.10 上的 gcc 似乎没有在二进制文件中放入任何无关的字符串。