<rdar://problem/10997402>

This fix really needed to happen as a previous fix I had submitted for
calculating symbol sizes made many symbols appear to have zero size since
the function that was calculating the symbol size was calling another function
that would cause the calculation to happen again. This resulted in some symbols
having zero size when they shouldn't. This could then cause infinite stack
traces and many other side affects.

llvm-svn: 152244
This commit is contained in:
Greg Clayton
2012-03-07 21:03:09 +00:00
parent 377f1f2d39
commit e761213428
29 changed files with 273 additions and 240 deletions

View File

@@ -539,7 +539,7 @@ ObjectFilePECOFF::GetSymtab()
symbol.naux = symtab_data.GetU8 (&offset);
Address symbol_addr(sect_list->GetSectionAtIndex(symbol.sect-1), symbol.value);
symbols[i].GetMangled ().SetValue (symbol_name.c_str(), symbol_name[0]=='_' && symbol_name[1] == 'Z');
symbols[i].SetValue(symbol_addr);
symbols[i].GetAddress() = symbol_addr;
if (symbol.naux > 0)
i += symbol.naux;