Skip to content

Commit 72a3f47

Browse files
committed
Remove addi string data hack and ... pool name hack
1 parent 4b78958 commit 72a3f47

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

objdiff-core/src/arch/ppc.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,6 @@ impl ObjArch for ObjArchPpc {
210210
let op = Opcode::from(instruction.op as u8);
211211
if let Some(ty) = guess_data_type_from_load_store_inst_op(op) {
212212
Some(ty)
213-
} else if op == Opcode::Addi {
214-
// Assume that any addi instruction that references a local symbol is loading a string.
215-
// This hack is not ideal and results in tons of false positives where it will show
216-
// garbage strings (e.g. misinterpreting arrays, float literals, etc).
217-
// But not all strings are in the @stringBase pool, so the condition above that checks
218-
// the target symbol name would miss some.
219-
Some(DataType::String)
220213
} else {
221214
None
222215
}

objdiff-core/src/diff/code.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ fn reloc_eq(
243243
|| address_eq(left, right)
244244
|| config.relax_shifted_data_diffs)
245245
&& (left.target.kind != ObjSymbolKind::Object
246-
|| right.target.name.starts_with("...")
247246
|| left_obj.arch.display_ins_data(left_ins)
248247
== left_obj.arch.display_ins_data(right_ins))
249248
}

0 commit comments

Comments
 (0)