Alexey Samsonov
2012-Aug-03 13:45 UTC
[LLVMdev] Formats supported by llvm/Object/Archive.h
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120803/059a6a5d/attachment.html>
Michael Spencer
2012-Aug-03 18:30 UTC
[LLVMdev] Formats supported by llvm/Object/Archive.h
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
Alexey Samsonov
2012-Aug-05 13:30 UTC
[LLVMdev] Formats supported by llvm/Object/Archive.h
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>
Maybe Matching Threads
- [LLVMdev] Formats supported by llvm/Object/Archive.h
- [LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
- [LLVMdev] Assertions in RuntimeDyldELF in ExecutionEngine/MCJIT tests
- [LLVMdev] C++ demangling in LLVM
- [LLVMdev] C++ demangling in LLVM