Skip to content
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

Fix finding BSS sections #624

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Fix finding BSS sections #624

merged 2 commits into from
Oct 23, 2023

Conversation

benfred
Copy link
Owner

@benfred benfred commented Oct 23, 2023

There can be multiple NOBITS sections in an ELF binary - and we were taking the first one as being the BSS section. In certain cases this doesn't work (including the latest python 3.12 binary in conda) - since there can be '.tbss' or '.sbss' sections instead.

Fix by performing an additional filter step using the section name.

There can be multiple NOBITS sections in an ELF binary - and we were taking
the first one as being the BSS section. In certain cases this doesn't work
(including the latest python 3.12 binary in conda) - since there can
be '.tbss' or '.sbss' sections instead.

Fix by performing an additional filter step using the section name.
@benfred benfred added the bug Something isn't working label Oct 23, 2023
@benfred benfred linked an issue Oct 23, 2023 that may be closed by this pull request
@benfred benfred mentioned this pull request Oct 23, 2023
@benfred benfred merged commit 75adc45 into master Oct 23, 2023
182 checks passed
@benfred benfred deleted the bss_fix branch October 23, 2023 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elf sbss issue
1 participant