[lld] [llvm] [LLD][ELF][AArch64] Add support for SHF_AARCH64_PURECODE ELF section flag (3/3) (PR #125689)

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 4 07:04:49 PST 2025


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


================
@@ -1300,7 +1300,10 @@ enum : unsigned {
   SHF_MIPS_STRING = 0x80000000,
 
   // Make code section unreadable when in execute-only mode
-  SHF_ARM_PURECODE = 0x20000000
+  SHF_ARM_PURECODE = 0x20000000,
+
+  // Section contains only program instructions and no program data.
----------------
smithp35 wrote:

`SHF_ARM_PURECODE` and `SHF_AARCH64_PURECODE` are the same concept. Can the comment be lifted above SHF_ARM_PURECODE as it applies to both, or just drop the comment.

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


More information about the llvm-commits mailing list