[PATCH] D43665: Take SHF_ARM_PURECODE into consideration when setting the program header flags

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 19:07:25 PST 2018


ruiu added inline comments.


================
Comment at: ELF/OutputSections.cpp:49-50
+  uint32_t Ret = 0;
+  if (Config->EMachine != EM_ARM || !(Flags & SHF_ARM_PURECODE))
+    Ret |= PF_R;
   if (Flags & SHF_WRITE)
----------------
Does this mean PURECODE is not readable but executable? (Just wondering)


https://reviews.llvm.org/D43665





More information about the llvm-commits mailing list