Skip to content

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

Open
LagoLunatic wants to merge 1 commit into
encounter:mainfrom
LagoLunatic:gcc-combine
Open

GCC: Fix "Instruction count mismatch" when combining text sections#397
LagoLunatic wants to merge 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.

Sign up for freeto 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

@LagoLunatic