简体   繁体   English

关于ubuntu gcc编译器的问题

[英]Question about ubuntu gcc compiler

I installed the build-essential package for ubuntu x86_64, compiling c programs and c++ programs work fine, but in the compiled binary, "Ubuntu linaro" appears. 我为ubuntu x86_64安装了build-essential软件包,编译c程序和c ++程序工作正常,但在编译的二进制文件中,出现了“Ubuntu linaro”。 is there a way to remove this? 有没有办法删除这个?

You can remove it using a hex editor. 您可以使用十六进制编辑器将其删除。 And may i ask why do you want to remove it?? 我可以问你为什么要删除它?

If you can figure out what section that string is in (.comment maybe?) you can use 如果你可以找出该字符串所在的部分(.comment可能?),你可以使用

strip -R .comment (or whatever section name)

to remove that section from the binary. 从二进制文件中删除该部分。

gcc on Ubuntu 10.10 for x86 doesn't seem to put any extraneous strings in the binaries. Ubuntu 10.10 for x86上的gcc似乎没有在二进制文件中放入任何无关的字符串。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM