Skip to content

Conversation

@EricRahm
Copy link
Collaborator

@EricRahm EricRahm commented Dec 9, 2025

Only symbols in sections marked with SHF_ALLOC should be added to the
VM map. This adds a check to filter non-SHF_ALLOC entries and fixes an
issue where info related sections could have addresses that conflicted
with SHF_ALLOC sections that actually affect the VM size.

Fixes: #469

@EricRahm EricRahm marked this pull request as draft December 9, 2025 01:09
@EricRahm EricRahm force-pushed the fix-469 branch 2 times, most recently from 799e9f2 to 232a883 Compare December 11, 2025 18:46
Only symbols in sections marked with `SHF_ALLOC` should be added to the
VM map. This adds a check to filter non-`SHF_ALLOC` entries and fixes an
issue where info related sections could have addresses that conflicted
with `SHF_ALLOC` sections that actually affect the VM size.

Fixes: google#469
Adds a test to make sure information sections that overlap with
`SHF_ALLOC` sections are ignored for VM mappings.
@EricRahm EricRahm marked this pull request as ready for review January 5, 2026 20:46
@EricRahm EricRahm requested a review from haberman January 5, 2026 20:47
@EricRahm
Copy link
Collaborator Author

EricRahm commented Jan 5, 2026

@haberman This was the potential "simple" fix for #469. The reporter confirmed it fixed their issue locally.

@EricRahm EricRahm merged commit 5a3b9ef into google:main Jan 5, 2026
10 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.

Ignore SHF_ALLOC sections in VM memory map

2 participants