[PATCH] D59372: [yaml2obj]Allow explicit setting of p_filesz, p_memsz, and p_offset

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 10:34:29 PDT 2019


jhenderson created this revision.
jhenderson added reviewers: grimar, jakehehrlich, Higuoxing.
Herald added a subscriber: jdoerfert.
Herald added a project: LLVM.

yaml2obj currently derives the p_filesz, p_memsz, and p_offset values from sections. This makes writing tests for certain formats more complex, and sometimes impossible. This patch allows setting these fields explicitly, overriding the default value, when relevant.


Repository:
  rL LLVM

https://reviews.llvm.org/D59372

Files:
  include/llvm/ObjectYAML/ELFYAML.h
  lib/ObjectYAML/ELFYAML.cpp
  test/tools/yaml2obj/program-header-size-offset.yaml
  tools/yaml2obj/yaml2elf.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59372.190663.patch
Type: text/x-patch
Size: 7042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190314/9266e763/attachment.bin>


More information about the llvm-commits mailing list