forked from OSchip/llvm-project
Fix ELF parsing where undefined symbols were being added to the symbol table with the incorrect symbol type.
llvm-svn: 174984
This commit is contained in:
parent
f72d06a919
commit
92dd5cfe04
|
@ -750,6 +750,9 @@ ParseSymbols(Symtab *symtab,
|
|||
break;
|
||||
}
|
||||
|
||||
// If a symbol is undefined do not process it further even if it has a STT type
|
||||
if (symbol_type != eSymbolTypeUndefined)
|
||||
{
|
||||
switch (symbol.getType())
|
||||
{
|
||||
default:
|
||||
|
@ -782,6 +785,7 @@ ParseSymbols(Symtab *symtab,
|
|||
symbol_type = eSymbolTypeObjectFile;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (symbol_type == eSymbolTypeInvalid)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue