forked from OSchip/llvm-project
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:
parent
d4214f0c86
commit
d091afe620
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue