Merge "riscv64: increase jmp_buf size." into main am: d4c9419441 am: 0fee718de7 am: fdbfa3c887

Original change: https://android-review.googlesource.com/c/platform/bionic/+/2719577

Change-Id: I62a6216ef25689600cbe90eca93c1783f8009b46
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-08-22 16:55:03 +00:00 committed by Automerger Merge Worker
commit ebec2073e5

View file

@ -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