2014/12/02
dumbpin을 이용하여 dll, exe가 32bit인지 64bit인지 확인하기
dumpbin은 MS에서 제공하는 COFF/PE의 내용을 확인할 수 있는 CLI 프로그램으로 /HEADERS 옵션으로 파일의 헤더를 확인할 수 있다.
Header를 확인해 보면 해당 Dll 이나 Exe 파일이 32bit인지 64bit인지 확인할 수 있다.
32비트의 경우
D:\>dumpbin /HEADERS cv100.dll | more
Microsoft (R) COFF/PE Dumper Version 11.00.61030.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file cv100.dll
PE signature found
File Type: DLL
FILE HEADER VALUES
14C machine (x86)
6 number of sections
45366940 time date stamp Thu Oct 19 02:49:52 2006
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
210E characteristics
Executable
Line numbers stripped
Symbols stripped
32 bit word machine
DLL
OPTIONAL HEADER VALUES
10B magic # (PE32)
6.00 linker version
-- More --
64비트의 경우
D:\>dumpbin /HEADERS cv100_64.dll | more
Microsoft (R) COFF/PE Dumper Version 11.00.61030.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file cv100_64.dll
PE signature found
File Type: DLL
FILE HEADER VALUES
8664 machine (x64)
6 number of sections
457E6508 time date stamp Tue Dec 12 17:15:04 2006
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
OPTIONAL HEADER VALUES
20B magic # (PE32+)
8.00 linker version
-- More --
<
Original Post : http://neodreamer-dev.tistory.com/731
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment