- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Symbol names in an object file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 12:10 AM
тАО07-08-2009 12:10 AM
I'm trying to find a way of listing all the function names associated with an object file, both globally and statically defined (complied in C).
I thought ANAL/OBJ would do it, but I couldn't manage to do it.
Also, I tried loading the object into a library and then doing LIB/LIST/NAMES but obviously this only shows the globally defined symbols.
Does anyone know of an easy way of doing this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 03:55 AM
тАО07-08-2009 03:55 AM
Re: Symbol names in an object file
In general, static functions are not visible from the outside (and, as we know, they are also good candidates for inlining).
On I64 it depends on the source code if the compiler sees a need to create a local symbol. It depends on the compiler if it creates an unamed local symbol or one with the name of the static function.
On I64 use ANAL/OBJ/section=symtab and look for "Symbol Type:" and STT_FUNC. ANAL/OBJ is the supported tool. There may be other tools to just list the Elf symbol table.
What problem are you trying to solve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 05:10 AM
тАО07-08-2009 05:10 AM
Re: Symbol names in an object file
Here's how these pieces are used during (for instance) an access violation (ACCVIO) stackdump and the resulting traceback:
http://labs.hoffmanlabs.com/node/800
There's also the ANA analysis files, but those AFAIK aren't documented.
Static function declarations don't (by default and by definition) don't get propagated downstream. Static functions might get entirely in-lined into the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 01:39 PM
тАО07-08-2009 01:39 PM
SolutionDisk space is cheap. Always compile with /LIST and add language specific options to include symbol tables, cross reference etc... Similarly, always generate a full link map with cross reference and a DSF file.
The time you save the first time you find a need to refer back to a listing or map will pay for the cost of disk space by several orders of magnitude.
Obviously the compilation cross reference listing will include "all the function names associated with an object file, both globally and statically defined"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 11:55 PM
тАО07-08-2009 11:55 PM
Re: Symbol names in an object file
Thanks
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 11:56 PM
тАО07-08-2009 11:56 PM
Re: Symbol names in an object file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 05:34 AM
тАО07-09-2009 05:34 AM