[PATCH] llvm-symbolizer: teach it about PowerPC64 ELF function descriptors

Jay Foad jay.foad at gmail.com
Tue Nov 4 03:42:05 PST 2014


Hi kcc, samsonov, willschm,

Teach llvm-symbolizer about PowerPC64 ELF function descriptors. Symbols in the .opd section point to function descriptors, the first word of which is a pointer to the real function. For the purposes of symbolizing we pretend that the symbol points directly to the function.

This is enough to get decent function names in stack traces for unoptimized binaries, which fixes the sanitizer print-stack-trace test on PowerPC64 Linux.

http://reviews.llvm.org/D6110

Files:
  tools/llvm-symbolizer/LLVMSymbolize.cpp
  tools/llvm-symbolizer/LLVMSymbolize.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6110.15756.patch
Type: text/x-patch
Size: 2377 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141104/3591e404/attachment.bin>


More information about the llvm-commits mailing list