[PATCH] D64401: [yaml2obj] - Allow overriding the sh_size field.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 04:43:52 PDT 2019
grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: rupprecht, jakehehrlich.
grimar added a comment.
May be it worth to split this into two patches? I am not sure.
There is no way to set broken `sh_size` field currently
for sections. It can be usefull for writing the
test cases. (I am going to use it in one of the futher patches).
This patch also teaches llvm-readobj/llvm-readelf to report a
error instead of warning on broken .dynamic section.
This matches GNU.
https://reviews.llvm.org/D64401
Files:
include/llvm/ObjectYAML/ELFYAML.h
lib/ObjectYAML/ELFYAML.cpp
test/Object/invalid.test
test/tools/llvm-readobj/elf-dynamic-malformed.test
test/tools/yaml2obj/elf-override-shsize.yaml
tools/llvm-readobj/ELFDumper.cpp
tools/yaml2obj/yaml2elf.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64401.208641.patch
Type: text/x-patch
Size: 9487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190709/372da7ed/attachment.bin>
More information about the llvm-commits
mailing list