[libunwind] [libunwind] Add CMake option to enable execute-only code generation on AArch64 (PR #140554)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 4 12:31:55 PDT 2025


=?utf-8?q?Csanád_Hajdú?= <csanad.hajdu at arm.com>,
=?utf-8?q?Csanád_Hajdú?= <csanad.hajdu at arm.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/140554 at github.com>


================
@@ -16,6 +16,8 @@
 
 #if defined(_AIX)
   .toc
+#elif defined(__aarch64__) && defined(__ELF__) && defined(_LIBUNWIND_EXECUTE_ONLY_CODE)
----------------
MaskRay wrote:

`defined(__ELF__)` seems unnecessary. Perhaps LIBUNWIND_EXECUTE_ONLY_CODE could have a check to reject non-ELF platforms

https://github.com/llvm/llvm-project/pull/140554


More information about the cfe-commits mailing list