summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-11-12 22:53:16 +0000
committerGreg Clayton <gclayton@apple.com>2012-11-12 22:53:16 +0000
commitd091afe6207fc53106049f1b04bc13d57cad51f7 (patch)
treec512d7008bcbd9f44bb374faef959780cb25d3f8 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parentd4214f0c867ba907da54c80623a7fcc81028812f (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud