summaryrefslogtreecommitdiff
path: root/doc/note/binutils/dumpbin.txt
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2024-05-12 12:55:07 +0200
committerAndreas Fankhauser hiddenalpha.ch2024-05-12 12:55:07 +0200
commit5cc4c2b95df9bf6998d92496ca0e0064314fba39 (patch)
treeac7d979f81a86703508ff23e2694a6b4d6bfe4d5 /doc/note/binutils/dumpbin.txt
parent1dc9f8c9db499a326ceee6cb3b48878ee17ff9fa (diff)
parent95d934e8e3918832c03f05b2fc32cb5d5272cb83 (diff)
downloadUnspecifiedGarbage-wip-LatitudeReSetup-20230620.zip
UnspecifiedGarbage-wip-LatitudeReSetup-20230620.tar.gz
Merge remote-tracking branch 'ha-public/master' into wip-LatitudeReSetup-20230620wip-LatitudeReSetup-20230620
Diffstat (limited to 'doc/note/binutils/dumpbin.txt')
-rw-r--r--doc/note/binutils/dumpbin.txt20
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:'