diff options
Diffstat (limited to 'doc/note/binutils/dumpbin.txt')
-rw-r--r-- | doc/note/binutils/dumpbin.txt | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/note/binutils/dumpbin.txt b/doc/note/binutils/dumpbin.txt index e71be0e..d71878b 100644 --- a/doc/note/binutils/dumpbin.txt +++ b/doc/note/binutils/dumpbin.txt @@ -2,15 +2,23 @@ DumpBin For Windoof =================== -Analyze PE32 / PE32+ files. +Scan for unwanted dependencies +------------------------------ -Location: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\dumpbin.exe" +Linux: -Help + find build/bin -type f -print0|xargs -0I? sh -c 'echo ?;readelf -d ?|egrep NEEDED|egrep -v "\\[(libc\\.|libz\\.|libm\\.|libdl\.|libpthread\.)"' - dumpbin /? -List needed DLLs. +Windoof: - dumpbin /DEPENDENTS foo.exe + find build/bin/*.exe -print0|xargs -0I? sh -c 'echo ?;objdump -p ?|egrep -i DLL\ Name:|egrep -iv "(KERNEL32.dll|msvcrt.dll|USER32.dll|WS2_32.dll|ADVAPI32.dll|GDI32.dll|IMM32.dll|ole32.dll|OLEAUT32.dll|SETUPAPI.dll|SHELL32.dll|VERSION.dll|WINMM.dll)"' + + + + +List Dll Dependencies Of A PE32 Executable +------------------------------------------ + + x86_64-w64-mingw32-objdump -p out.exe | grep 'DLL Name:' |