We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a85f54 commit 66da80fCopy full SHA for 66da80f
objdiff-core/src/arch/arm.rs
@@ -224,7 +224,10 @@ impl Arch for ArchArm {
224
}
225
226
// Check how many bytes we can/should read
227
- let num_code_bytes = if data.len() >= 4 {
+ let num_code_bytes = if mode == unarm::ParseMode::Data {
228
+ // 32-bit .word value should be aligned on a 4-byte boundary, otherwise use .hword
229
+ if address & 3 == 0 { 4 } else { 2 }
230
+ } else if data.len() >= 4 {
231
// Read 4 bytes even for Thumb, as the parser will determine if it's a 2 or 4 byte instruction
232
4
233
} else if mode != unarm::ParseMode::Arm {
0 commit comments