(
&self,
symbol: &Symbol,
section: &Section,
mut next_address: u64,
)
| 460 | } |
| 461 | |
| 462 | fn infer_function_size( |
| 463 | &self, |
| 464 | symbol: &Symbol, |
| 465 | section: &Section, |
| 466 | mut next_address: u64, |
| 467 | ) -> Result<u64> { |
| 468 | // Trim any trailing 4-byte zeroes from the end (padding) |
| 469 | while next_address >= symbol.address + 4 |
| 470 | && let Some(data) = section.data_range(next_address - 4, 4) |
| 471 | && data == [0u8; 4] |
| 472 | && section.relocation_at(next_address - 4, 4).is_none() |
| 473 | { |
| 474 | next_address -= 4; |
| 475 | } |
| 476 | Ok(next_address.saturating_sub(symbol.address)) |
| 477 | } |
| 478 | |
| 479 | fn post_init(&mut self, _sections: &[Section], _symbols: &[Symbol], symbol_indices: &[usize]) { |
| 480 | // Change the indices used as keys from the original symbol indices to the new symbol array indices |
nothing calls this directly
no test coverage detected