This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Opening archive files
- From: Momchil Velikov <velco at fadata dot bg>
- To: Satya <satya at ittc dot ku dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 30 Oct 2002 01:06:51 +0200
- Subject: Re: Opening archive files
- Organization: Independent entity
- References: <Pine.LNX.4.44.0210291700400.9963-100000@scooter.ittc.ku.edu>
On Tue, 29 Oct 2002 17:02:29 -0600 (CST)
Satya <satya@ittc.ku.edu> wrote:
>
> Hi,
> I want to read the symbols from an archive (.a) file. I tried to use
>
> dlopen, it works fine for a .so file, but fails to recognize the
> format of an archive file. Can anyone help me regarding this.
The format of .a archives is usually described in a header "ar.h".
See the sources for the "ar" program too.
~velco