Skip to content

Fix finding BSS sections#624

Merged
benfred merged 2 commits intomasterfrom
bss_fix
Oct 23, 2023
Merged

Fix finding BSS sections#624
benfred merged 2 commits intomasterfrom
bss_fix

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