If you can figure out which section the line is in (.comment, maybe?), You can use
strip -R .comment (or whatever section name)
to remove this section from the binary.
gcc on Ubuntu 10.10 for x86 does not seem to put any extra lines in binary files.
source
share