(obj: &Object, resolved: ResolvedInstructionRef)
| 871 | } |
| 872 | |
| 873 | pub fn display_ins_data_labels(obj: &Object, resolved: ResolvedInstructionRef) -> Vec<String> { |
| 874 | let Some(reloc) = resolved.relocation else { |
| 875 | return Vec::new(); |
| 876 | }; |
| 877 | if reloc.relocation.addend < 0 || reloc.relocation.addend as u64 >= reloc.symbol.size { |
| 878 | return Vec::new(); |
| 879 | } |
| 880 | let Some(data) = obj.symbol_data(reloc.relocation.target_symbol) else { |
| 881 | return Vec::new(); |
| 882 | }; |
| 883 | let bytes = &data[reloc.relocation.addend as usize..]; |
| 884 | obj.arch |
| 885 | .guess_data_type(resolved, bytes) |
| 886 | .map(|ty| ty.display_labels(obj.endianness, bytes)) |
| 887 | .unwrap_or_default() |
| 888 | } |
| 889 | |
| 890 | pub fn display_ins_data_literals( |
| 891 | obj: &Object, |
nothing calls this directly
no test coverage detected