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).
It depends on D64472.
Paths
| Differential D64401
[yaml2obj] - Allow overriding the sh_size field. ClosedPublic Authored by grimar on Jul 9 2019, 4:42 AM.
Details Summary There is no way to set broken sh_size field currently It depends on D64472.
Diff Detail
Event TimelineComment Actions
Seems to me like there's nothing relating the sh_size overriding to the broken entry size? So yes, they should be different patches.
grimar added a child revision: D64470: [Object/ELF] - Improve error reporting for notes..Jul 10 2019, 12:52 AM grimar marked 6 inline comments as done. grimar added a parent revision: D64472: [llvm-readobj/llvm-readelf] - Report a warning instead of a error when dumping a broken dynamic section.. Comment ActionsComment Actions LGTM, with one nit.
This revision is now accepted and ready to land.Jul 10 2019, 4:43 AM Closed by commit rL365766: [yaml2obj] - Allow overriding the sh_size field. (authored by grimar). · Explain WhyJul 11 2019, 5:59 AM This revision was automatically updated to reflect the committed changes. grimar marked an inline comment as done.
Revision Contents
Diff 209192 llvm/trunk/include/llvm/ObjectYAML/ELFYAML.h
llvm/trunk/lib/ObjectYAML/ELFYAML.cpp
llvm/trunk/test/tools/yaml2obj/elf-override-shsize.yaml
llvm/trunk/tools/yaml2obj/yaml2elf.cpp
|