diff options
author | Greg Clayton <gclayton@apple.com> | 2012-11-12 22:53:16 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-11-12 22:53:16 +0000 |
commit | d091afe6207fc53106049f1b04bc13d57cad51f7 (patch) | |
tree | c512d7008bcbd9f44bb374faef959780cb25d3f8 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | |
parent | d4214f0c867ba907da54c80623a7fcc81028812f (diff) | |
download | bcm5719-llvm-d091afe6207fc53106049f1b04bc13d57cad51f7.tar.gz bcm5719-llvm-d091afe6207fc53106049f1b04bc13d57cad51f7.zip |
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
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index dbbca6f56f1..f1a502747de 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -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; |