[PATCH] D130877: [MCObjectFileInfo] Add getPCSection() helper

Dmitry Vyukov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 01:05:02 PDT 2022


dvyukov added inline comments.


================
Comment at: llvm/lib/MC/MCObjectFileInfo.cpp:1189
+  // SHF_WRITE for relocations, and let user post-process data in-place.
+  unsigned Flags = ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_LINK_ORDER;
+
----------------
Do we actually plan to write to these sections? Does setting SHF_WRITE prevent sharing of pages across multiple processes? Of SHF_WRITE pages still mapped as shared/write-protected first and then subject to copy-on-write?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130877/new/

https://reviews.llvm.org/D130877



More information about the llvm-commits mailing list