[PATCH] D58543: [yaml2obj]Re-allow dynamic sections to have raw content

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 22 04:21:18 PST 2019


jhenderson created this revision.
jhenderson added reviewers: grimar, amontanez, jakehehrlich.
Herald added a project: LLVM.

Recently, support was added to yaml2obj to allow dynamic sections to have a list of entries, to make it easier to write tests with dynamic sections. However, this change also removed the abiltiy to provide custom contents to the dynamic section, making it hard to test malformed contents (e.g. because the section is valid size to contain an array of entries). This change reinstates this. An error is emitted if raw content and dynamic entries are both specified.


Repository:
  rL LLVM

https://reviews.llvm.org/D58543

Files:
  include/llvm/ObjectYAML/ELFYAML.h
  lib/ObjectYAML/ELFYAML.cpp
  test/tools/yaml2obj/dynamic-section-raw-content.yaml
  tools/yaml2obj/yaml2elf.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58543.187923.patch
Type: text/x-patch
Size: 4774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190222/4c7c5779/attachment.bin>


More information about the llvm-commits mailing list