Xref: utzoo comp.sources.d:5626 gnu.misc.discuss:1238 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bu.edu!xylogics!merk!alliant!linus!nixbur!nixpbe!peun11!josef From: josef@nixpbe.UUCP (Moellers) Newsgroups: comp.sources.d,gnu.misc.discuss Subject: Re: Easy way to tell if something's compiled with gcc? Message-ID: Date: 16 Jul 90 06:27:25 GMT References: <3527@dingus.oakhill.UUCP> Sender: news@nixpbe.UUCP Followup-To: comp.sources.d Lines: 21 In <3527@dingus.oakhill.UUCP> murf@oakhill.UUCP (Steve Murphy) writes: >There is one way to quickly ascertain if gcc was used to compile a binary. >Try: >grep gcc_compiled executable-name >gcc does drop a string "gcc_compiled" into object compiled with it. >I'm sure that a clever person could turn this off. As far as I know it's defined as an assember symbol, so it should be in the symbol table. If You "strip" the object (perhaps using GNU strip), then that trace is gone. -- | Josef Moellers | c/o Nixdorf Computer AG | | USA: mollers.pad@nixbur.uucp | Abt. PXD-S14 | | !USA: mollers.pad@nixpbe.uucp | Heinz-Nixdorf-Ring | | Phone: (+49) 5251 104662 | D-4790 Paderborn |