$LC
1 parent 6735137 commit ae39329Copy full SHA for ae39329
1 file changed
objdiff-core/src/arch/ppc/mod.rs
@@ -379,6 +379,11 @@ impl Arch for ArchPpc {
379
return Some(ty);
380
}
381
382
+ if reloc.is_some_and(|r| r.symbol.name.starts_with("$LC")) {
383
+ // GCC compiler-generated symbol name for a literal.
384
+ // This could be a float literal instead of a string literal, so only check this after the opcode.
385
+ return Some(DataType::String);
386
+ }
387
if bytes.len() >= 2 && bytes.iter().position(|&c| c == b'\0') == Some(bytes.len() - 1) {
388
// It may be an unpooled string if the symbol contains exactly one null byte at the end of the symbol.
389
return Some(DataType::String);
0 commit comments