Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

The format of the symbol table for COFF executable images

Posted on 1997-12-04
2
Medium Priority
?
496 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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.
Suggested Courses

688 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