[PATCH] D95728: [yaml2obj/obj2yaml/llvm-readobj] Support SHF_GNU_RETAIN

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 22:50:48 PST 2021


MaskRay created this revision.
MaskRay added reviewers: grimar, jhenderson.
Herald added subscribers: rupprecht, hiraditya, krytarowski, arichardson, emaste.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In binutils, the flag is defined for ELFOSABI_GNU and ELFOSABI_FREEBSD.
It can be used to mark a section as a GC root.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95728

Files:
  llvm/include/llvm/BinaryFormat/ELF.h
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/test/tools/llvm-readobj/ELF/section-flags-os-proc.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95728.320280.patch
Type: text/x-patch
Size: 6208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210130/254d158f/attachment.bin>


More information about the llvm-commits mailing list