This adds an -mllvm flag that forces the use of a runtime function call to
get the unsafe stack pointer, the same that is currently used on non-x86, non-aarch64 android.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 14157 Build 14157: arc lint + arc unit
Event Timeline
Comment Actions
The function should really have coldcc or preserve_allcc but those are either not implemented (i.e. crash the compiler) or just not do anything useful on arm and aarch64.
As is, generated code is atrocious.
Comment Actions
Attempt to use a custom calling convention for the safestack pointer accessor function.
Not ready for review.
Comment Actions
An attempt to inline the safestack accessor function.
To use, add -mllvm -safestack-pointer-address-inline=1.
Function must be called safestack_pointer_address_inline.
"attribute__((used)) static" is recommended so the function is not discarded early.