-
Notifications
You must be signed in to change notification settings - Fork 43
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
"Exception terminator 'invoke' is not supported yet" #334
Comments
I think I'll have to file this one under "won't fix" -- there is no clear way to express the kind of behavior LLVM expects with regards to exception handling in pure C. |
Okay, would it be feasible to get Right now, if any routine uses Also, should the error message for this one be changed then? It isn’t really “yet” if it won’t ever be supported :) |
I'd say it would be feasible but out of scope for Rellic. This would be akin to modifying the bitcode before going into Rellic itself, which is something downstream users should be able to do relatively easily: it's essentially an LLVM pass that goes through every function that contains
Heh that's a fair point. I guess it's not really "it won't ever be supported" as much as it is a "we don't know what this looks like yet". Right now we don't really have an internal use for Rellic anymore so it's not receiving active updates, but if we did want to support exceptions we'd need to think about the fact that there's probably multiple ways to represent them in C ( |
Thanks for the feedback, @frabert!
Okay, understood.
Maybe it isn't "won't fix" but more "highly non-trivial and something we're nowhere near addressing" then? That can collide in practical terms with "won't fix", but does actually have a different meaning. |
Sure, that wording may be too strong. The GitHub button says "Close as not planned" and I'd say that's the perfect description: we are not planning on implementing this feature in the foreseeable future :) |
I am using
rellic
at commit: 86280f6The system I'm running this on is:
Here's my example:
Which I assemble and try to decompile as follows:
Note: I'm using the
llvm-as
that gets pulled down byvcpkg
when buildingrellic
from source (so hopefully everything is compatible).When I run this, I get the following error:
Here is how the backtrace to
/home/avj/rellic/lib/AST/GenerateAST.cpp:260
looks ingdb
:The text was updated successfully, but these errors were encountered: