================ @@ -2102,6 +2121,12 @@ ObjectFileELF::ParseSymbols(Symtab *symtab, user_id_t start_id, if (!symbol_name) symbol_name = ""; + // Skip local symbols starting with ".L" because these are compiler + // generated local labels used for internal purposes (e.g. debugging, + // optimization) and are not relevant for symbol resolution or external + // linkage in RISC-V binaries. + if (symbol_name[0] == '.' && symbol_name[1] == 'L') ---------------- dmpots wrote:
This is going to read out of bounds on an empty string. Let's try something like this instead: `llvm::StringRef(symbol_name).startswith(".L")` https://github.com/llvm/llvm-project/pull/154809 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits