Search code examples
cgccubuntucompilationgcc3

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?


Solution

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