In MachOObjectFile::getSymbolType we currently always return SymbolRef::ST_Function for symbols from any section. In order for llvm-symbolizer to correctly symbolize Mach-O globals, symbols from data and BSS sections should return SymbolRef::ST_Data.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
lib/Object/MachOObjectFile.cpp | ||
---|---|---|
404 ↗ | (On Diff #39938) | Do you actually use this variable? |