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 cff4be2 commit 2c57e49Copy full SHA for 2c57e49
objdiff-core/src/arch/arm.rs
@@ -464,6 +464,22 @@ impl Arch for ArchArm {
464
}
465
flags
466
467
+
468
+ fn infer_function_size(
469
+ &self,
470
+ symbol: &Symbol,
471
+ section: &Section,
472
+ mut next_address: u64,
473
+ ) -> Result<u64> {
474
+ // Trim any trailing 4-byte zeroes from the end (padding)
475
+ while next_address >= symbol.address + 4
476
+ && let Some(data) = section.data_range(next_address - 4, 4)
477
+ && data == [0u8; 4]
478
+ {
479
+ next_address -= 4;
480
+ }
481
+ Ok(next_address.saturating_sub(symbol.address))
482
483
484
485
#[derive(Clone, Copy, Debug)]
0 commit comments