Daniel
Daniel

Reputation: 3077

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?

Upvotes: 3

Views: 306

Answers (2)

Sean
Sean

Reputation: 5480

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.

Upvotes: 2

Fady Mohamed Othman
Fady Mohamed Othman

Reputation: 1908

You can remove it using a hex editor. And may i ask why do you want to remove it??

Upvotes: 3

Related Questions