Solved

The format of the symbol table for COFF executable images

Posted on 1997-12-04
2
483 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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…
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…
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.

747 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

7 Experts available now in Live!

Get 1:1 Help Now