On Sat, 4 Mar 2000, Francois Gouget wrote:

> 
> On Sat, 4 Mar 2000, Jim Aston wrote:
> 
> > nm libwine.so
> > 
> > (If this is for spec files two more commands are cut and c++filt.)
> 
>       Sorry, my first email must have been ambiguous. What I'm
> interested in is the list of functions imported/exported by arbitrary
> programs or libraries.
> 
>       For example 'dumpbin /imports hellowin.exe' will tell
> me which functions hellowin (from the Petzold) uses. Once processed it 
> looks a bit like this:
> this:
> GDI32:
>       GetStockObject 
> KERNEL32:
>       CloseHandle, ExitProcess, FlushFileBuffers, ...
> USER32
>        BeginPaint, CreateWindowExA, ...
> WINMM
>        PlaySoundA
> 
> 
>       Unfortunately dumpbin will not run in Wine due to the usual 'no
> relocation records present' (also you need Visual C++). I thought it
> might be interesting to have a native Unix version of this tool. But
> there's really no hurry.
> 
> --
> Francois Gouget    [EMAIL PROTECTED]   
http://www.multimania.com/fgouget
> 
>   Good judgment comes from experience, and experience comes from bad
judgment
>                                -- Barry LePatner
> 
I have on my system an elf binary named pedump that does I think what
you want.   Unfortunately, I can't find any trace of where I got it, so
I'll let it speak for itself and hope that may give you a clue.  I guess
I must have built it with glibc-2.0.6 but it seems to work fine with
glibc-2.1.2.  If you can't find it and would like more help, I can try
again to find where I put the source, or mail you the binary (it'll gzip
to 90k, so I could split and uuencode that into 3 letters.


PEDUMP - Win32/COFF .EXE/.OBJ file dumper - 1993 Matt Pietrek, 1995-1997
Jacob Navia
Working version Sep 28 1998 21:07:43

Syntax: PEDUMP [switches] filename

  -a    include everything in dump
  -h    include dump of sections
  -l    include line number information
  -rel  show base relocations
  -e    show resources
  -x    eXtract section: for instance /x.data
  -d    dump code view format debug info
  -s    show symbol table

Uwe Bonnes perpetrated a program called pedisassem that lists imports
and everything else about the same time.  I have the source for that; I
think I ftpmailed it from his site, but I have lost track of that too.

Lawson
          >< Microsoft free environment

This mail client runs on Wine.  Your mileage may vary.

---cut here---





________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.

Reply via email to