We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8807580 commit 3e74225Copy full SHA for 3e74225
objdiff-core/src/diff/mod.rs
@@ -650,7 +650,13 @@ where
650
651
fn symbol_section<'obj>(obj: &'obj Object, symbol: &Symbol) -> Option<(&'obj str, SectionKind)> {
652
if let Some(section) = symbol.section.and_then(|section_idx| obj.sections.get(section_idx)) {
653
- Some((section.name.as_str(), section.kind))
+ // Match x86 .rdata$r against .rdata$rs
654
+ let section_name = if let Some((prefix, _)) = section.name.split_once('$') {
655
+ prefix
656
+ } else {
657
+ section.name.as_str()
658
+ };
659
+ Some((section_name, section.kind))
660
} else if symbol.flags.contains(SymbolFlag::Common) {
661
Some((".comm", SectionKind::Common))
662
} else {
0 commit comments