[PATCH] D56569: [ObjectYAML][yaml2obj][ELF] Add basic support for dynamic entries

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 5 00:31:54 PST 2019


grimar added a comment.
Herald added a project: LLVM.

In D56569#1362258 <https://reviews.llvm.org/D56569#1362258>, @amontanez wrote:

> There were quite a few tests that required the .dynamic section in D55629 <https://reviews.llvm.org/D55629>. D55852 <https://reviews.llvm.org/D55852> tests also have a number of .dynamic entries as well. Without the ability to write .dynamic entries in yaml2obj, these will continue to contain a good portion of hexidecimal section contents with annotations. This addition to yaml2obj is going to be rather low-priority for me, but I feel it's the best way to make llvm-elfabi tests more legible. It also will make creation of new tests significantly easier.


Hi Armando! Sorry, I did not notice this patch earlier. I have a simple solution implemented in D57691 <https://reviews.llvm.org/D57691> which teaches the tools to parse and dump the .dynamic section and its dynamic tags.
It does not try to do anything else rather than dumping and parsing the existent entries, though that seems to be enough for the purposes of improving the tests.

Would you mind if I try to land it? It seems to me that features of this patch like "dynamic entries are validated for correctness.", "dynamic entries can be automatically inferred." and
others are something more complicated and can/should be implemented on top.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56569/new/

https://reviews.llvm.org/D56569





More information about the llvm-commits mailing list