Merge "riscv64: increase jmp_buf size." into main am: d4c9419441
am: 0fee718de7
am: fdbfa3c887
am: ebec2073e5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2719577 Change-Id: If5b57892e195ca0df7b5c49bbce41aac5d4ed65d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
668cee3bb2
1 changed files with 6 additions and 4 deletions
|
@ -66,12 +66,14 @@
|
|||
/**
|
||||
* The size in words of a riscv64 jmp_buf. Room for callee-saved registers,
|
||||
* including floating point, stack pointer and program counter, various
|
||||
* internal implementation details, and leaving some free space.
|
||||
* internal implementation details, and leaving lots of free space.
|
||||
*
|
||||
* Coincidentally matches OpenBSD, though they also save/restore the
|
||||
* floating point status register too.
|
||||
* Deliberately very large given the uncertainty around the final form of
|
||||
* hardware shadow stack, and the fact that x86-64 glibc needed to steal
|
||||
* space from their enormous sigset_t (which we don't have) to be able to
|
||||
* implement the CET shadow stack.
|
||||
*/
|
||||
#define _JBLEN 32
|
||||
#define _JBLEN 64
|
||||
#elif defined(__x86_64__)
|
||||
/** The size in words of an x86-64 jmp_buf. Inherited from OpenBSD. */
|
||||
#define _JBLEN 11
|
||||
|
|
Loading…
Reference in a new issue