[OT] Strings embedded by gcc in executables?
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Tue Dec 6 14:56:15 PST 2005
On 06.12.2005, at 22:55, walt wrote:
$strings -a firefox-bin | grep GCC
GCC: (GNU) 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)
[many identical lines snipped]
My question is: under what conditions would two different
such compiler version-strings appear in *one* executable file?
I think if one of the objects linked was compiled by a different
compiler
like
% touch foo.c
% echo "int main;" > bar.c
% env CCVER=gcc40 cc -c foo.c
% cc bar.c foo.o
% strings -a a.out|grep GCC
GCC: (GNU) 3.4.5 20050809 (prerelease)
GCC: (GNU) 3.4.5 20050809 (prerelease)
GCC: (GNU) 3.4.5 20050809 (prerelease)
GCC: (GNU) 4.0.1
GCC: (GNU) 3.4.5 20050809 (prerelease)
The obvious corollary is: why does gcc leave such version-
stamps in a file in the first place?
so you know which which compiler it was built? ads? data retention?
spray tags? dunno really.
cheers
simon
--
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low â¬â¬â¬ NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
Attachment:
PGP.sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00005.pgp
Type: application/octet-stream
Size: 186 bytes
Desc: "Description: This is a digitally signed message part"
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20051206/d7cf7b06/attachment-0021.obj>
More information about the Users
mailing list