Solved

The format of the symbol table for COFF executable images

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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…
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.:
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.

624 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