-
Notifications
You must be signed in to change notification settings - Fork 110
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
Support iteration across eh_frame_hdr binary search table #619
Conversation
What do you need this for? |
The product I am currently working on does runtime manipulation of |
Are you modifying the binary search table too? It seems doing that would require duplicating some of this code. I'm not certain that an iterator is the best API for this sort of manipulation. Ideally you would operate on a slice of entries (although that might run into difficulties with supporting multiple pointer sizes). |
I agree that the iterator is not the most direct approach for manipulation
but it is the most general for traversal. We are collecting data about the
necessary modifications in the traversal and modifying out of band (since
gimli isn't really a "modify in place" library).
A slice does sound nice but it can't be a direct slice to memory due to the
pointer parsing mechanics, so an interface would still have to sit between
the two. It's worth noting that the iterator having the `nth` function
implemented does allow for effectively random access when the size of
entries is known which is almost as good as a slice.
…On Thu, Apr 7, 2022 at 8:39 PM Philip Craig ***@***.***> wrote:
Are you modifying the binary search table too? It seems doing that would
require duplicating some of this code. I'm not certain that an iterator is
the best API for this sort of manipulation. Ideally you would operate on a
slice of entries.
—
Reply to this email directly, view it on GitHub
<#619 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2OQ2EY2675GNHCV35BZ6TVD6S7TANCNFSM5S3DWBIA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Mitch
|
Allows for iteration across the binary search table entries found in the
.eh_frame_hdr
.Closes #612