Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,10 @@ ObjectFileELF::ParseSymbols(Symtab *symtab, user_id_t start_id,
// generated local labels used for internal purposes (e.g. debugging,
// optimization) and are not relevant for symbol resolution or external
// linkage.
if (llvm::StringRef(symbol_name).starts_with(".L"))
// LoongArch64 always uses symbols for relocations, so temporary symbols
// starting with ".L" should be preserved.
if (llvm::StringRef(symbol_name).starts_with(".L") &&
arch.GetMachine() != llvm::Triple::loongarch64)
continue;
// No need to add non-section symbols that have no names
if (symbol.getType() != STT_SECTION &&
Expand Down
Loading