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

Feature request: expose ud_syn_rel_target (or equivalent functionality) #110

Open
BenHenning opened this issue Feb 16, 2016 · 0 comments
Open

Comments

@BenHenning
Copy link

Hello,

I'm currently writing a C++ code coverage tool and using libudis86 as a disassembly library. It is working perfectly and is really efficient. However, to maintain efficiency, I've turned off translation, but it seems to me that translation is the only way to get the absolute address for instructions such as CALL and JMP. I noticed that ud_syn_rel_target in syn.h is used to return the proper relative addressed from the instruction operand, however this function is only used when translating instructions to strings and is not exposed to calling code (which might need this absolute address, such as in my case).

I've temporarily modified my local copy of libudis86 to expose this function for external linkage, but I wanted to request this functionality be exposed within the official distribution of the library, if possible. I'm happy to make the change myself, but I'm also not entirely sure whether exposing this is desired by the team or whether there is a better alternative to accomplishing what I need to do here.

Thanks!

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

No branches or pull requests

1 participant