Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2446 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Codes et scripts

  un exécutable et quelle version de gcc utilisée

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

un exécutable et quelle version de gcc utilisée

n°845962
depx
Posté le 26-09-2006 à 12:13:34  profilanswer
 

Bonjour,

 

Comment peut on savoir avec quelle version de gcc a été compilé un programe ?

 

 :jap:


Message édité par depx le 26-09-2006 à 12:30:09
mood
Publicité
Posté le 26-09-2006 à 12:13:34  profilanswer
 

n°846231
nemo13
Posté le 26-09-2006 à 23:12:39  profilanswer
 

Bonsoir,  
je n'ai pas de réponse pour des exécutables ( je ne sais pas s'il y a quelque chose dans les entêtes ELF )
pour te consoler tu peux avoir des réponses pour les lib
par exemple en lançant :
gentoobscur # /lib/libc.so.6
tu obtiens

Code :
  1. GNU C Library development release version 2.4, by Roland McGrath et al.
  2. Copyright (C) 2006 Free Software Foundation, Inc.
  3. This is free software; see the source for copying conditions.
  4. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
  5. PARTICULAR PURPOSE.
  6. Compiled by GNU CC version 4.1.1 (Gentoo 4.1.1).
  7. Compiled on a Linux 2.6.11 system on 2006-05-28.
  8. Available extensions:
  9.         The C stubs add-on version 2.1.2.
  10.         crypt add-on version 2.1 by Michael Glad and others
  11.         GNU Libidn by Simon Josefsson
  12.         GNU libio by Per Bothner
  13.         NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
  14.         Native POSIX Threads Library by Ulrich Drepper et al
  15.         Support for some architectures added on, not maintained in glibc core.
  16.         BIND-8.2.3-T5B
  17. Thread-local storage support included.
  18. For bug reporting instructions, please see:
  19. <http://www.gnu.org/software/libc/bugs.html>.

voili-voilà

n°846233
depx
Posté le 26-09-2006 à 23:30:14  profilanswer
 

ok, merci

 

vla le miens :

 


Code :
  1. GNU C Library stable release version 2.3.6, by Roland McGrath et al.
  2. Copyright (C) 2005 Free Software Foundation, Inc.
  3. This is free software; see the source for copying conditions.
  4. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
  5. PARTICULAR PURPOSE.
  6. Compiled by GNU CC version 3.4.6 (Ubuntu 3.4.6-1ubuntu2).
  7. Compiled on a Linux 2.6.11 system on 2006-05-21.
  8. Available extensions:
  9.         GNU libio by Per Bothner
  10.         crypt add-on version 2.1 by Michael Glad and others
  11.         GNU Libidn by Simon Josefsson
  12.         linuxthreads-0.10 by Xavier Leroy
  13.         BIND-8.2.3-T5B
  14.         libthread_db work sponsored by Alpha Processor Inc
  15.         NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
  16. Thread-local storage support included.
  17. For bug reporting instructions, please see:
  18. <http://www.gnu.org/software/libc/bugs.html>.



Message édité par depx le 26-09-2006 à 23:33:00
n°846235
P-Y
Posté le 26-09-2006 à 23:33:32  profilanswer
 

T'as toujours la solution du "strings <binaire> | grep -i gcc", mais bon c'est un peu bourrin et doit surement y avoir plus propre.
edit: meme pas besoin de hexdump d'ailleurs, avec strings ca marche mieux


Message édité par P-Y le 26-09-2006 à 23:35:45
n°846236
depx
Posté le 26-09-2006 à 23:37:06  profilanswer
 

je viens d'essayer hexdump -C <binaire> | grep -i gcc : bonne idée mais cela donne rien


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Codes et scripts

  un exécutable et quelle version de gcc utilisée

 

Sujets relatifs
Ati : fglrx probleme de version de gcc ?AU SECOURS !!!! Antivirus gratuit pour Mac OS X Version 10.3.9 ?
Reconnaitre ma version de kernelVersion de ksh
Linux Debian Comment identifier la version?XFS, partition vierge utilisée a 30% ?!
Knoppix linux où trouver la version dvd live 4 ??Debian unstable : version de Xorg
Modifier Executable Path[OS] Freespire (Linspire en version Open Source) : Debian, KDE et CNR
Plus de sujets relatifs à : un exécutable et quelle version de gcc utilisée


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR