Skip to content

Commit

Permalink
Dump elf symbols properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz authored and sergio-nsk committed Jul 31, 2024
1 parent a107340 commit ff38335
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/common/linux/dump_symbols.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1223,12 +1223,10 @@ bool ReadSymbolDataElfClass(const typename ElfClass::Ehdr* elf_header,
return false;

LoadSymbolsInfo<ElfClass> info(debug_dirs);
if (!LoadSymbols<ElfClass>(obj_filename, big_endian, elf_header,
if (LoadSymbols<ElfClass>(obj_filename, big_endian, elf_header,
!debug_dirs.empty(), &info,
options, module.get())) {
options, module.get()) && !info.debuglink_file().empty()) {
const string debuglink_file = info.debuglink_file();
if (debuglink_file.empty())
return false;

// Load debuglink ELF file.
fprintf(stderr, "Found debugging info in %s\n", debuglink_file.c_str());
Expand Down

0 comments on commit ff38335

Please sign in to comment.