Skip to content

Don't attempt to pair up empty/unknown symbols with matching names - #412

Open
LagoLunatic wants to merge 1 commit into
encounter:mainfrom
LagoLunatic:pair-ignore-undiffable
Open

LagoLunatic wants to merge 1 commit into
encounter:mainfrom
LagoLunatic:pair-ignore-undiffable

Conversation

@LagoLunatic

Copy link
Copy Markdown
Collaborator

objdiff already skips over undiffable symbols like empty symbols and unknown section types without trying to pair them up when they're on the left side, but it didn't do this when they're on the right. This resulted in symbols being paired strangely in rare cases where a diffable left symbol had the same name as an undiffable right symbol (e.g. because of bad symbols.txt). Now both left and right skip over undiffable symbols when pairing.

This bug fix has the side effect of improving diffing performance, because objdiff now doesn't waste time on symbols that won't be showed anywhere anyway, such as .line or .dwarf symbols. For TP debug, this more than doubles report generation speed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant