[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian executables...



On Sun, 2006-02-05 at 20:53 +0000, Digby Tarvin wrote:
> I am a little puzzled about something I just noticed about the
> executable file format of my Debian Sarge install....
> 
> It seems to be running gcc 3.3.5, and if I run file(1) on the output
> of the compiler I get:
> 
> a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped
> 
> On the old system I upgraded from (SuSE 7.3), the compiler was version 2.95.3
> but running file(1) again (also on the new Debian) I get
> 
> a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped
> 
> For some reason, the executable from the old comiler is for GNU/Linux '2.2.5',
> but the output of the newer Debain compiler indicates '2.2.0'...
> 
[snip]
> 
> Does anyone have any idea what is going on here?
> 
> I was rather hoping as a worst case to have gotten some form of
> 'unsupported executable format' error message if there was a
> compatability problem...

Does this give you any insight?

$ ld --version
GNU ld version 2.16.91 20060118 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.

$ gcc --version
gcc (GCC) 4.0.3 20060115 (prerelease) (Debian 4.0.2-7)
Copyright (C) 2005 Free Software Foundation, Inc.

$ gcc testmem2.c
me@haggis:~$ file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA

Why do people think that Pamela Anderson & Paris Hilton are so
attractive? Those women are *weird* looking.



Reply to: