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
4 changes: 2 additions & 2 deletions absl/debugging/symbolize_elf.inc
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ static bool ShouldPickFirstSymbol(const ElfW(Sym) & symbol1,
// If one of the symbols is weak and the other is not, pick the one
// this is not a weak symbol.
char bind1 = ELF_ST_BIND(symbol1.st_info);
char bind2 = ELF_ST_BIND(symbol1.st_info);
char bind2 = ELF_ST_BIND(symbol2.st_info);
if (bind1 == STB_WEAK && bind2 != STB_WEAK) return false;
if (bind2 == STB_WEAK && bind1 != STB_WEAK) return true;

Expand All @@ -728,7 +728,7 @@ static bool ShouldPickFirstSymbol(const ElfW(Sym) & symbol1,
// If one of the symbols has no type and the other is not, pick the
// one that has a type.
char type1 = ELF_ST_TYPE(symbol1.st_info);
char type2 = ELF_ST_TYPE(symbol1.st_info);
char type2 = ELF_ST_TYPE(symbol2.st_info);
if (type1 != STT_NOTYPE && type2 == STT_NOTYPE) {
return true;
}
Expand Down