Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / courgette / disassembler_elf_32_arm.cc
index 3633061..f0f94b9 100644 (file)
@@ -215,7 +215,7 @@ uint16 DisassemblerElf32ARM::TypedRVAARM::op_size() const {
     case ARM_OFF21:
       return 4;
     default:
-      return -1;
+      return 0xFFFF;
   }
 }
 
@@ -291,8 +291,6 @@ CheckBool DisassemblerElf32ARM::RelToRVA(Elf32_Rel rel, RVA* result) const {
     default:
       return false;
   }
-
-  return false;
 }
 
 CheckBool DisassemblerElf32ARM::ParseRelocationSection(
@@ -387,7 +385,7 @@ CheckBool DisassemblerElf32ARM::ParseRel32RelocsFromSection(
     // addressing mode?
 
     TypedRVAARM* rel32_rva = NULL;
-    RVA target_rva;
+    RVA target_rva = 0;
     bool found = false;
 
     // 16-bit thumb ops