[LLVMdev] Formats supported by llvm/Object/Archive.h

Michael Spencer bigcheesegs at gmail.com
Fri Aug 3 11:30:39 PDT 2012


On Fri, Aug 3, 2012 at 6:45 AM, Alexey Samsonov <samsonov at google.com> wrote:
> Hi, llvmdev
>
> I've tried to use llvm/Object/Archive.h to print the archive symbol table
> for standard Unix .a files by slightly extending a code in llvm-nm,
> and the code crashed with wild segfault. It looks like the implementation in
> lib/Object/Archive.cpp assumes completely different symbol table format from
> what I have
> (which I believe is SVR4/GNU variant). Which archive formats does libObject
> support, and are there any plans to extend it?
>
> --
> Alexey Samsonov, MSK
>

I believe it currently only supports the llvm and Microsoft symbol
table format. I really should have documented that while writing the
code ;/

My intent was to extend it to support both gnu and bsd style formats.

- Michael Spencer



More information about the llvm-dev mailing list