I have to debug a problem with Windows DLLs, but I'm running Linux exclusively, so I was wondering whether there are (preferably command-line) tools to inspect Windows DLLs under Linux. What I'm looking for is mainly the list of exported symbols.
Asked
Active
Viewed 1.0k times
11
-
1Can't you run some Windows in an VM (e.g. Qemu), or use Wine ? – Basile Starynkevitch Jun 19 '12 at 11:18
-
1Just curious - if you're debugging a Windows DLL under Linux, how are you executing it? – Eric Smith Jun 19 '12 at 11:57
-
@EricSmith I'm not trying to execute it, I just wanted to check for the existenace of some symbols. – daniel kullmann Jun 19 '12 at 13:15
-
@BasileStarynkevitch Which program can I use under Wine to get a list of exported symbols from a DLL? – daniel kullmann Jun 19 '12 at 13:16
3 Answers
14
Use "winedump -j export file.dll"
winedump is part of Wine
Homepage:
https://www.winehq.org/docs/winedump

Guillermo Reisch
- 140
- 1
- 4
6
Have you checked if Dependency Walker will work under wine?
(just a WAG)
How to use it on the command line (Run it from the same directory as the DLL):
wine /full/path/to/depends.exe /c /of:output.txt dynamic-library.dll

daniel kullmann
- 13,653
- 8
- 51
- 67

bcelary
- 1,827
- 1
- 17
- 17
-
4gives me `err:module:import_dll Library MFC42.dll (which is needed by L"Z:\\tmp\\depends22_x64\\depends.exe") not found`, even though this very dll is active – phil294 Jul 06 '17 at 21:27
0
https://github.com/knik0/peinfo
works nicely. Tested with several Windows DLLs 64 bits

Antonio Linares Cañas
- 310
- 2
- 9