Skip to content

ARM: Fix "Combine text sections" confusing code and data #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 26, 2025

Conversation

LagoLunatic
Copy link
Contributor

Fixes #175. The issue seems to be that the mapping symbols are read from the object file itself when it's first read, before objdiff combines any sections, so only the first function has accurate mappings.

To fix this, I added a post_init step to the Arch trait that now reads the mapping symbols from the combined text section instead. If other arches have similar issues with combined sections, post_init might help for those as well.

image

@encounter encounter merged commit e1c51ac into encounter:main Apr 26, 2025
24 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.

"Combine text sections" gets confused by ARM constant pools
2 participants