[PATCH] D58779: [yaml2obj] - Allow setting custom sh_info for RawContentSection sections.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 28 05:37:49 PST 2019


grimar created this revision.
grimar added a reviewer: jhenderson.
Herald added subscribers: jdoerfert, jakehehrlich.

I need this for tweaking SHT_SYMTAB sections.
Their sh_info contains the (number of symbols + 1) usually. But for
creating invalid inputs for test cases it would be convenient
to allow explicitly override this field from yaml.

This change allowed to remove 3 precompiled binaries from
LLD test cases set. I'll post a link on a LLD patch here shortly.


https://reviews.llvm.org/D58779

Files:
  include/llvm/ObjectYAML/ELFYAML.h
  lib/ObjectYAML/ELFYAML.cpp
  test/tools/obj2yaml/elf-shinfo.yaml
  test/tools/yaml2obj/elf-symtab-shinfo.yaml
  tools/obj2yaml/elf2yaml.cpp
  tools/yaml2obj/yaml2elf.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58779.188720.patch
Type: text/x-patch
Size: 4918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190228/204d37ce/attachment.bin>


More information about the llvm-commits mailing list