[PATCH] D83482: [yaml2obj] - Add a syntax to override e_phoff, e_phentsize and e_phnum fields.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 06:18:54 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: hiraditya, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

This adds `PhOff`, `PhEntSize` and `PhNum` keys.
Will be useful for creating broken objects for testing llvm-readelf.


https://reviews.llvm.org/D83482

Files:
  llvm/include/llvm/ObjectYAML/ELFYAML.h
  llvm/lib/ObjectYAML/ELFEmitter.cpp
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/test/tools/yaml2obj/ELF/header-sh-fields.yaml
  llvm/tools/obj2yaml/elf2yaml.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83482.276724.patch
Type: text/x-patch
Size: 5407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200709/765d0772/attachment.bin>


More information about the llvm-commits mailing list