Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions objdiff-core/src/arch/ppc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ impl Arch for ArchPpc {
return Some(ty);
}
}
if reloc.is_some_and(|r| r.symbol.name.starts_with("$LC")) {
// GCC compiler-generated symbol name for a literal.
// This could be a float literal instead of a string literal, so only check this after the opcode.
return Some(DataType::String);
}
if bytes.len() >= 2 && bytes.iter().position(|&c| c == b'\0') == Some(bytes.len() - 1) {
// It may be an unpooled string if the symbol contains exactly one null byte at the end of the symbol.
return Some(DataType::String);
Expand Down