From 21dfe5a22da02ed8bcd9fa1cca7c18c8c5310172 Mon Sep 17 00:00:00 2001 From: patches Date: Sun, 28 Apr 2019 18:45:57 +0000 Subject: [PATCH 3/4] Avoid using _ZNSsC1ERKSsjRKSaIcE GLIBCXX symbol due to version compat issues --- src/common/dwarf/elf_reader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/dwarf/elf_reader.cc b/src/common/dwarf/elf_reader.cc index 4135a51a..bfaaeefe 100644 --- a/src/common/dwarf/elf_reader.cc +++ b/src/common/dwarf/elf_reader.cc @@ -1202,8 +1202,8 @@ const char *ElfReader::GetSectionInfoByName(const string §ion_name, bool ElfReader::SectionNamesMatch(const string &name, const string &sh_name) { if ((name.find(".debug_", 0) == 0) && (sh_name.find(".zdebug_", 0) == 0)) { - const string name_suffix(name, strlen(".debug_")); - const string sh_name_suffix(sh_name, strlen(".zdebug_")); + const string name_suffix(&name.c_str()[strlen(".debug_")]); + const string sh_name_suffix(&sh_name.c_str()[strlen(".zdebug_")]); return name_suffix == sh_name_suffix; } return name == sh_name; -- 2.21.0