Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

The format of the symbol table for COFF executable images

Posted on 1997-12-04
2
Medium Priority
?
500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

926 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