Feature request: Ability to iterate over all entries in the EhHdrTable
mstange opened this issue · comments
EhHdrTable
has various APIs to look up addresses in the table, but I can't find a way to get a list of all entries.
I'm interested in a full list from eh_frame_hdr because I want to use it as a cheap approximation of function start addresses, to synthesize fallback symbols for stripped libraries. I could also get such a list from eh_frame itself, but it would probably take longer to parse.
@main--, @fitzgen, was this an intentional omission, or just something that wasn't needed at the time?
I think you should iterate over the FDEs in eh_frame
instead. I can't imagine it's much slower than eh_frame_hdr
, and it will work even if eh_frame_hdr
is missing.
Fair enough.
Does #619 meet your needs?
Yes, I think that does exactly what I need.