Ilya Skapenko via llvm-dev
2017-May-08 16:42 UTC
[llvm-dev] Get size of unwind information
Hello, Is it possible to retrieve size of unwind information from an object file for a particular function? object::computeSymbolSizes computes sizes without unwind info -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170508/2c915b97/attachment.html>
Joshua Cranmer 🐧 via llvm-dev
2017-May-08 17:49 UTC
[llvm-dev] Get size of unwind information
On 5/8/17 11:42 AM, Ilya Skapenko via llvm-dev wrote:> Hello, > Is it possible to retrieve size of unwind information from an object > file for a particular function? > object::computeSymbolSizes computes sizes without unwind infoUnwind information (on ELF at least, don't know about Mach-O or COFF) is stored in a separate section and in a format that isn't strictly compatible with functions (FDEs in .eh_frame are built on PC ranges). As far as I'm aware, there's no LLVM code to parse the .eh_frame section, so you'd have to do it yourself. -- Joshua Cranmer Thunderbird and DXR developer Source code archæologist