[ELF][yaml2obj] Handle additional MIPS specific st_other field flags
[oota-llvm.git] / tools / obj2yaml / elf2yaml.cpp
index bff28496db1eefa9b5f84fc97f9a7ea6aad7f363..d770ce1151ead4962979ee96e5934318dca9e25a 100644 (file)
@@ -133,7 +133,7 @@ std::error_code ELFDumper<ELFT>::dumpSymbol(Elf_Sym_Iter Sym,
   S.Type = Sym->getType();
   S.Value = Sym->st_value;
   S.Size = Sym->st_size;
-  S.Visibility = Sym->getVisibility();
+  S.Other = Sym->st_other;
 
   ErrorOr<StringRef> NameOrErr = Obj.getSymbolName(Sym);
   if (std::error_code EC = NameOrErr.getError())