Skip to content

Add dl_iterate_phdr to Android #2144

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

Merged
merged 2 commits into from
Apr 12, 2021
Merged

Add dl_iterate_phdr to Android #2144

merged 2 commits into from
Apr 12, 2021

Conversation

kjvalencik
Copy link
Contributor

@kjvalencik kjvalencik commented Apr 8, 2021

Adds the dl_iterate_phdr function for Android targets. This is required for Android support in gimli and by proxy, backtrace.

I tested this in backtrace both in an i686 emulator and a physical arm64 device.

This API is only available on Version 21+. I'm not sure how that's typically handled in libc, so I added a doc comment.

Let me know what else is needed!

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@JohnTitor
Copy link
Member

Looks good, thanks :)
@bors r+

@bors
Copy link
Contributor

bors commented Apr 9, 2021

📌 Commit 970fec9 has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Apr 9, 2021

⌛ Testing commit 970fec9 with merge 800c771...

bors added a commit that referenced this pull request Apr 9, 2021
Add dl_iterate_phdr to Android

Adds the `dl_iterate_phdr` function for Android targets. This is required for Android support in `gimli` and by proxy, `backtrace`.

I tested this in [`backtrace`](https://crates.io/crates/backtrace) both in an i686 emulator and a physical arm64 device.

This API is only available on Version 21+. I'm not sure how that's typically handled in `libc`, so I added a doc comment.

Let me know what else is needed!
@bors
Copy link
Contributor

bors commented Apr 9, 2021

💔 Test failed - checks-actions

@kjvalencik
Copy link
Contributor Author

@JohnTitor Thanks for the review! I figured out how to get the Android tests running locally and resolved a few places where naming didn't exactly match the header definitions.

CI should be passing now.

@JohnTitor
Copy link
Member

👍, @bors r+

@bors
Copy link
Contributor

bors commented Apr 12, 2021

📌 Commit ab1472e has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Apr 12, 2021

⌛ Testing commit ab1472e with merge d3ca6a7...

@bors
Copy link
Contributor

bors commented Apr 12, 2021

☀️ Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing d3ca6a7 to master...

@bors bors merged commit d3ca6a7 into rust-lang:master Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants