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

Alexey Samsonov samsonov at google.com
Sun Aug 5 06:30:05 PDT 2012


On Fri, Aug 3, 2012 at 10:30 PM, Michael Spencer <bigcheesegs at gmail.com>wrote:

> 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.


I see. Thanks for clarification!

-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120805/71c06c4b/attachment.html>


More information about the llvm-dev mailing list