1752536 Members
4822 Online
108788 Solutions
New Discussion юеВ

Re: Linker utility( nm)

 
Mutturaj
Occasional Contributor

Linker utility( nm)

Hello,

I would like to know the utility name which would be able to search the given function name in the given object file. I mean to refer the utility like nm.

Thanks in advance.

With Anticipation

Mutturaj
6 REPLIES 6
Ian Miller.
Honored Contributor

Re: Linker utility( nm)

If you want a utility which can search an object file for a particular name then I think ANAL/OBJECT will decode an object file then you can search the result.

$ ANAL/OBJECT/OUT=X.LIS objectfilename
$ SEARCH X.LIS functionname
____________________
Purely Personal Opinion
Antoniov.
Honored Contributor

Re: Linker utility( nm)

Yes,
equivalent nm -f of HP-UX is ANALYZE/OBJ.
However there aren't neitehr same qualifier neither same output format.

Antonio Vigliotti
Antonio Maria Vigliotti
Ian Miller.
Honored Contributor

Re: Linker utility( nm)

VMS is not unix. What are you trying to achive - there may be a better way on VMS
____________________
Purely Personal Opinion
Joseph Huber_1
Honored Contributor

Re: Linker utility( nm)

The best is to put object files in question into an object LIBRARY and use
$ LIBRARY libname/LIST/NAMES (evtl. together with search on the output).
http://www.mpp.mpg.de/~huber
Venkat_18
Advisor

Re: Linker utility( nm)

Crude but easy way is
"search *.* /win=0"

Willem Grooters
Honored Contributor

Re: Linker utility( nm)

$ pipe analyze/obj | sea sys$pipe
or, slower but more precise:

$ pipe analyze/obj | sea sys$pipe "symbol:"" | sea sys$pipe

can hold wildcard in the name (*.obj) to searcha number of objects.

For library, use the LIBRARY command, as specified.

Willem
Willem Grooters
OpenVMS Developer & System Manager