You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compiling with LLVM ARM Zero Cost Exception (EHABI)
Logan Chien edited this page Oct 16, 2013
·
6 revisions
Introduction
The LLVM upstream (and the upcoming LLVM 3.4) should be able to generate ARM EHABI compliant executables. To build your application with ARM EHABI support, you have to compile your application with two additional back-end options: -arm-enable-ehabi and -arm-enable-ehabi-descriptors, for example:
(Note: The -mllvm tells Clang to forward next option to LLVM backend, so that the ARM back-end can enable the EHABI support.)
Developer Log
[TL;DR] For LLVM developer only.
We used to disabling the return-address-stack optimization with one patch in order to avoid the generation of Thumb2 branch instruction "b.w". It is no longer need since Evan Cheng has committed r167657, which disabled the incorrect return-address-stack optimization.
The fix-arm-ehabi branch has been merged with LLVM upstream on April 16th.
The arm-add-unwind-directives branch has been completely merged with LLVM upstream on June 2nd. The ARM EHABI should work after the commit r185422.