[llvm] [AArch64] Add support for SHF_AARCH64_PURECODE ELF section flag (1/3) (PR #125687)

Csanád Hajdú via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 12 08:23:11 PST 2025


================
@@ -559,9 +559,12 @@ static unsigned getELFSectionFlags(SectionKind K) {
   if (K.isText())
     Flags |= ELF::SHF_EXECINSTR;
 
-  if (K.isExecuteOnly())
+  if ((T.isARM() || T.isThumb()) && K.isExecuteOnly())
----------------
Il-Capitano wrote:

I like your version more actually, so I'll change it. Thanks for the suggestion!

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


More information about the llvm-commits mailing list