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
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.
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

1 participant