如果您能找出该字符串所在的部分(可能是.comment),您就可以使用。strip -R .comment (or whatever section name) 将该部分从二进制文件中移除。 在Ubuntu 10.10 x86上使用gcc似乎不会在二进制文件中放置任何多余的字符串。