OSDN Git Service

Fix for issue 20051601 - ARM instruction alignment.
authorDavid Srbecky <dsrbecky@google.com>
Thu, 2 Apr 2015 19:38:40 +0000 (20:38 +0100)
committerDavid Srbecky <dsrbecky@google.com>
Thu, 2 Apr 2015 19:42:03 +0000 (20:42 +0100)
The instructions do not have to be 4 byte aligned.

Change-Id: I58078a15190b835601094611ed01a599e2d99563

compiler/elf_writer_quick.cc

index a92ce69..3ce19ab 100644 (file)
@@ -495,7 +495,7 @@ static void FillInCFIInformation(OatWriter* oat_writer,
         isa = 1;  // DW_ISA_ARM_thumb.
         break;
       case kArm:
-        code_factor_bits_ = 2;  // 32-bit instructions
+        code_factor_bits_ = 1;  // 16-bit instructions
         isa = 2;  // DW_ISA_ARM_arm.
         break;
       case kArm64: