Fixed an error in the ELF parser that was comparing a bool to 4 causing 32 bit ELF relocations to get parsed incorrectly.

llvm-svn: 167773
This commit is contained in:
Greg Clayton 2012-11-12 22:53:16 +00:00
parent d4214f0c86
commit d091afe620
1 changed files with 1 additions and 1 deletions

View File

@ -964,7 +964,7 @@ ParsePLTRelocations(Symtab *symbol_table,
reloc_info_fn reloc_type;
reloc_info_fn reloc_symbol;
if (hdr->Is32Bit() == 4)
if (hdr->Is32Bit())
{
reloc_type = ELFRelocation::RelocType32;
reloc_symbol = ELFRelocation::RelocSymbol32;