[all-commits] [llvm/llvm-project] 0cca9e: [compiler-rt] Remove enable_execute_stack support ...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Mon Sep 15 07:55:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0cca9e4baa0073a5a6f46b1b09dbd6ed290ae619
      https://github.com/llvm/llvm-project/commit/0cca9e4baa0073a5a6f46b1b09dbd6ed290ae619
  Author: Akira Hatanaka <ahatanak at gmail.com>
  Date:   2025-09-15 (Mon, 15 Sep 2025)

  Changed paths:
    M compiler-rt/lib/builtins/CMakeLists.txt

  Log Message:
  -----------
  [compiler-rt] Remove enable_execute_stack support on arm64 Darwin (#158386)

`enable_execute_stack` is not supported on arm64 Darwin because:

- It calls mprotect with `PROT_WRITE | PROT_EXEC`, which is rejected on
this platform.
- It assumes a fixed 4K page size, which is not guaranteed.

This change disables building `enable_execute_stack` on arm64 Darwin and
fixes the failing test:

`compiler-rt/test/builtins/Unit/enable_execute_stack_test.c`.

rdar://159705691



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list