简体   繁体   中英

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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