summaryrefslogtreecommitdiff
path: root/doc/note/binutils/dumpbin.txt
blob: d71878bc9795168f13c99db3fe715a1a5d86f1a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

DumpBin For Windoof
===================

Scan for unwanted dependencies
------------------------------

Linux:

  find build/bin -type f -print0|xargs -0I? sh -c 'echo ?;readelf -d ?|egrep NEEDED|egrep -v "\\[(libc\\.|libz\\.|libm\\.|libdl\.|libpthread\.)"'


Windoof:

  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:'