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?
Asked
Active
Viewed 294 times
3
-
1Really? I thought they were an ARM mob, not x86. In any case, do you really _care_ what strings are in the binary, as long as it works okay? – paxdiablo Mar 18 '11 at 10:44
-
Usually no, but if i'm compiling commercial software, i don't want people to know it was compiled using ubuntu – Daniel Mar 18 '11 at 11:08
-
By people, you mean you don't want the guys who will open the binary in a hex editor to know that? – sashoalm Mar 21 '11 at 10:12
2 Answers
3
You can remove it using a hex editor. And may i ask why do you want to remove it??

Fady Mohamed Othman
- 1,889
- 1
- 15
- 26
-
If i'm compiling commercial software, i don't want people to know it was compiled using ubuntu – Daniel Mar 19 '11 at 01:07
2
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.

Sean
- 5,290
- 2
- 24
- 21