llvm-project/llvm/lib/DebugInfo
Fangrui Song 6d766c8bf9 DebugInfo/Symbolize: Allow STT_NOTYPE/STT_GNU_IFUNC symbols for .symtab symbolization
In assembly files, omitting `.type foo,@function` is common. Such functions have
type `STT_NOTYPE` and llvm-symbolizer reports `??` for them.

An ifunc symbol usually has an associated resolver symbol which is defined at
the same address. Returning either one is fine for symbolization. The resolver
symbol may not end up in the symbol table if (object file) `.L` is used (linked
image) .symtab is stripped while .dynsym is retained.

This patch allows ELF STT_NOTYPE/STT_GNU_IFUNC symbols for .symtab symbolization.

I have left TODO in the test files for an unimplemented STT_FILE heuristic.

Differential Revision: https://reviews.llvm.org/D95916
2021-02-08 12:29:11 -08:00
..
CodeView [llvm] Use llvm::sort (NFC) 2021-01-17 10:39:45 -08:00
DWARF [WebAssembly] locals can now be indirect in DWARF 2021-02-05 11:14:42 -08:00
GSYM [llvm] Use llvm::sort (NFC) 2021-01-17 10:39:45 -08:00
MSF [DebugInfo] Use llvm::append_range (NFC) 2021-01-04 11:42:45 -08:00
PDB Revert "[PDB] Defer relocating .debug$S until commit time and parallelize it" 2021-01-28 13:17:27 -08:00
Symbolize DebugInfo/Symbolize: Allow STT_NOTYPE/STT_GNU_IFUNC symbols for .symtab symbolization 2021-02-08 12:29:11 -08:00
CMakeLists.txt Add GSYM utility files along with unit tests. 2019-06-26 14:09:09 +00:00