diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-12-05 13:31:54 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-12-08 17:41:46 +0000 |
commit | da7a5b5f4df247726806ec7c5ce57d6bf4290a01 (patch) | |
tree | a21d86138dc6173b85a29051c783de5849fce060 | |
parent | 7701243cceeaeabc0852fb20ad80f17389cb1921 (diff) | |
download | glibc-da7a5b5f4df247726806ec7c5ce57d6bf4290a01.tar.gz |
cheri: malloc: Set __always_fail_morecore
Morello linux does not support brk syscall, so fail early in the malloc
implementation instead of trying to use the syscall which always fails.
-rw-r--r-- | malloc/arena.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/malloc/arena.c b/malloc/arena.c index 85cc2ad066..c63cb70f74 100644 --- a/malloc/arena.c +++ b/malloc/arena.c @@ -327,6 +327,7 @@ ptmalloc_init (void) #endif #ifdef __CHERI_PURE_CAPABILITY__ + __always_fail_morecore = true; if (TUNABLE_GET_FULL (glibc, mem, cap_narrowing, int32_t, NULL) == 0) cap_narrowing_enabled = false; else |