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

tools: fix readelf parsing with more than 100 sections #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

roccodev
Copy link

This fixes readelf parsing for SDK builds when an ELF has more than 100 sections. I encountered this years ago when trying to get Rust to work on the Pebble: https://github.com/pebble-rust/pebble-rust/blob/master/docs/TROUBLESHOOTING.md

See also: coredevices#3

This fixes readelf parsing for SDK builds when an ELF has more than 100 sections.
The parsing logic previously assumed that section IDs could only go up to 99
(2 digits), this makes it look for a closing bracket instead.
@roccodev roccodev force-pushed the fix/readelf-99-sections branch from 517a549 to 59adb77 Compare February 14, 2025 21:15
@gmarull
Copy link

gmarull commented Feb 17, 2025

Please make sure to adjust commits following requirements in .gitlint. See #20

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.

2 participants