开发者

Question about ubuntu gcc compiler

开发者 https://www.devze.com 2023-02-18 18:19 出处:网络
I installed the build-essential package for ubuntu x86_64, compiling c programs and c++ programs work fine, but in the compiled binary, \"Ubu开发者_高级运维ntu linaro\" appears. is there a way to remo

I installed the build-essential package for ubuntu x86_64, compiling c programs and c++ programs work fine, but in the compiled binary, "Ubu开发者_高级运维ntu linaro" appears. 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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消