[PATCH] D74955: [obj2yaml] - Dump SHT_STRTAB, SHT_SYMTAB and SHT_DYNSYM sections.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 22 10:49:45 PST 2020
MaskRay added a comment.
> Sometimes we need to dump an object and build it again from a YAML description produced. The problem is that obj2yaml does not dump some of sections, like string tables and symbol tables.
>
> Because of that yaml2obj implicitly creates them and sections created are not placed at their original locations. They are added to the end of a section list. That makes a preparing test cases task harder than it can be.
The description is verbose. Just mention that obj2yaml does not dump SHT_STRTAB/SHT_SYMTAB/SHT_DYNSYM. This is problematic because the output YAML loses track of their positions in the section header table and makes objyaml->yaml2obj round trip fail.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74955/new/
https://reviews.llvm.org/D74955
More information about the llvm-commits
mailing list