SORU
26 Ocak 2009, PAZARTESİ


Nasıl eğer yerel bir DLL DOSYASı 64 veya 86 olarak derlendi bulmak için?

Eğer yerel bir derleme yönetilen kod uygulama (C#) x 64 veya 86 olarak uygun olup olmadığını belirlemek istiyorum.

Bir yerde PE OS loader bu bilgilere ihtiyacı olduğundan başlık olmalı diye düşünüyorum ama bulamadım. Elbette yönetilen kod bunu yapmak için tercih, ama gerekirse, yerel C kullanabilirim .

CEVAP
10 EKİM 2010, Pazar


DUMPBIN de kullanabilirsiniz. /headers /all bayrağı kullanın ve ilk dosya başlığını listelenmiştir.

dumpbin /headers cv210.dll

64-bit

Microsoft (R) COFF/PE Dumper Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file cv210.dll

PE signature found

File Type: DLL

FILE HEADER VALUES
            8664 machine (x64)
               6 number of sections
        4BBAB813 time date stamp Tue Apr 06 12:26:59 2010
               0 file pointer to symbol table
               0 number of symbols
              F0 size of optional header
            2022 characteristics
                   Executable
                   Application can handle large (>2GB) addresses
                   DLL

32-bit

Microsoft (R) COFF/PE Dumper Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file acrdlg.dll

PE signature found

File Type: DLL

FILE HEADER VALUES
             14C machine (x86)
               5 number of sections
        467AFDD2 time date stamp Fri Jun 22 06:38:10 2007
               0 file pointer to symbol table
               0 number of symbols
              E0 size of optional header
            2306 characteristics
                   Executable
                   Line numbers stripped
                   32 bit word machine
                   Debug information stripped
                   DLL
< . p ^'' hayat biraz daha kolay yapabilirsiniz:

dumpbin /headers cv210.dll |find "machine"
        8664 machine (x64)

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Hak5DarrensVlog

    Hak5DarrensV

    11 EYLÜL 2009
  • Rockstar Games

    Rockstar Gam

    17 ŞUBAT 2006
  • Vicious Computers

    Vicious Comp

    14 EKİM 2006