[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

509.0. "Symbol tables from .EXE files" by ILO::LENIHAN () Thu Jul 02 1987 15:03

T.RTitleUserPersonal
Name
DateLines
509.1how about...VIDEO::OSMANtype video::user$7:[osman]eric.sixThu Jul 02 1987 19:109
Well, I've got a program that will turn on the "debugging" bit in any
.EXE file.  Then, you can do something like:

	$ run/debug mumble
	dbg> set out log
	dbg> set log mumble.log
	dbg> show symbol/all		! or is it "show symbol *", I forget

/Eric
509.2I use LIBR for that.CASEE::VANDENHEUVELFormerly known as BISTRO::HEINFri Jul 03 1987 06:514
    Another good hack is to put the image in an image library with
    the librarian. Then ask the librarian to /LIST/NAMES.
    
    Hein.
509.3Building .STB fileILO::LENIHANFri Jul 03 1987 11:2719
    Thanks,
    	There is no problem to see what symbols are in the shareable
    image. All I do is 
    
    	$ ANAL/IMAGE/NOHEAD/OUT=SYM <Shareable>.EXE
    
    and then 
    	$ SEAR SYM.ANL "symbol"/window=(1,1)
    
    Thats fine!
    What I'm really after is to rebuild the symbol table from the shareable
    image. The LINKER reference states that a symbol table is appended
    to the back of the shareable image. Can any wizards out there tell
    me how to extract this into a .STB file.
    
    Thanks in advance
    
    
    john.
509.4Building an .STB fileBEAGLE::MOSERWed Aug 12 1987 15:319
    
    re: .3
    
    To get a symbol table from an image just use the LINK qualifier
    /SYMBOL and you'll have your own .STB file
    
    $ LINK/SYMBOL=<filespec>/....   .....
    
    -cmos-
509.5It's there, modules exist to get at it..MDVAX3::COARA wretched hive of bugs and flamers.Mon Dec 14 1987 19:4513
    But he said he didn't have the .OBJ file.
    
    That symbol table information is what gets put in a SHAREABLE IMAGE
    SYMBOL TABLE library (LIBRARY /SHARE), so there should be some way
    of extracting it from something like that - however, I can't find
    it.  So, in the meantime, how about creating a temporary shareable
    library with LIBRARY /SHARE /CREATE FOO BAR.EXE, and linking against
    FOO?  Or doing whatever it is you want to do against FOO?  LIBRARY
    /SHARE /LIST /NAMES /FULL should tell you anything you need to know
    about the symbols therein, although not in a format easily usable
    by a programme..
    
    #ken	:-)}