[PATCH] D102284: [Object] Add IsSectionReadOnly section interface

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 11 16:21:51 PDT 2021


Amir created this revision.
Amir added reviewers: djtodoro, jhenderson, aprantl, vsk.
Herald added subscribers: hiraditya, sbc100.
Amir requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

The interface is implemented for ELF and checks if ALLOC and PROGBITS attributes
are set and WRITE is not set. Not implemented for the rest of formats.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102284

Files:
  llvm/include/llvm/Object/COFF.h
  llvm/include/llvm/Object/ELFObjectFile.h
  llvm/include/llvm/Object/MachO.h
  llvm/include/llvm/Object/ObjectFile.h
  llvm/include/llvm/Object/Wasm.h
  llvm/include/llvm/Object/XCOFFObjectFile.h
  llvm/lib/Object/COFFObjectFile.cpp
  llvm/lib/Object/MachOObjectFile.cpp
  llvm/lib/Object/WasmObjectFile.cpp
  llvm/lib/Object/XCOFFObjectFile.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102284.344586.patch
Type: text/x-patch
Size: 6932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210511/ca6714c1/attachment.bin>


More information about the llvm-commits mailing list