Solved

The format of the symbol table for COFF executable images

Posted on 1997-12-04
2
487 Views
Last Modified: 2006-11-17
Could someone please forward me the EXACT format of the symbol table for COFF executable images on the Alpha. I have checked the man pages under a.out and filehdr, and these do not give the structure. A version is given in the man page for syms but no explanation is given. I am trying to write a program to look into the symbol table and extract all the various function names and where they start in the file from the table.
0
Comment
Question by:petermcc
2 Comments
 
LVL 4

Accepted Solution

by:
jos010697 earned 100 total points
ID: 2008219
Have you looked at the man page for 'ldfcn'? It explains
a set of functions (and macros) that manipulate and
extract information from a COFF file. Basically the
scenario is something like this:

LDFILE* p= ldopen("file");

/* use p as a first parameter to the ldfcn function set */

it nicely encapsulates all the gory details of the a.out
file format while allowing you to inspect every detail of
the file ...

kind regards,

Jos aka jos@and.nl


0
 

Expert Comment

by:sesha
ID: 2008220
Hello ,                                                                        Use elf function,use ldfcn->ldopen              ldbtread,ldgetname.But on uxware(intel platform)we are not able      to get the symbol names.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now