Question about ubuntu gcc compiler

307 Views Asked by At

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?

2

There are 2 best solutions below

0
On BEST ANSWER

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.

1
On

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