Skip to content

GCC: Fix "Instruction count mismatch" when combining text sections - #397

Merged
LagoLunatic merged 1 commit into
encounter:mainfrom
LagoLunatic:gcc-combine
Aug 17, 2026
Merged

GCC: Fix "Instruction count mismatch" when combining text sections#397
LagoLunatic merged 1 commit into
encounter:mainfrom
LagoLunatic:gcc-combine

Conversation

@LagoLunatic

Copy link
Copy Markdown
Collaborator

When combining GCC text sections grouped by "." separators was implemented, the logic in symbol_section was not updated to take this into account, which introduced issues where symbols would fail to be paired up when sections were merged on one side but not the other (which could happen when only one side only had a single text section and didn't need to be combined). This also results in an "Instruction count mismatch" error due to the symbols not being paired up properly (fixes #374).

I factored out the duplicate logic to a shared function so it's always consistent.

@LagoLunatic
LagoLunatic merged commit dabfa4b into encounter:main Aug 17, 2026
23 checks passed
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.

Instruction Count Mismatch

1 participant