This is an archive of the discontinued LLVM Phabricator instance.

[yaml2obj][test] - Merge strtab-implicit-sections-*.yaml into strtab-implicit-sections.yaml and improve testing of .shstrtab
ClosedPublic

Authored by grimar on Oct 29 2020, 1:57 AM.

Details

Summary

This creates strtab-implicit-sections.yaml and merges 2 strtab-implicit-sections* tests into it.
I've also added a few tests for .shstrtab section related to section flags.

With that we have a single place where we can test implicit string table sections and
the .shstrtab section in particular.

Diff Detail

Event Timeline

grimar created this revision.Oct 29 2020, 1:57 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: emaste. · View Herald Transcript
grimar requested review of this revision.Oct 29 2020, 1:57 AM
jhenderson added inline comments.Oct 29 2020, 2:14 AM
llvm/test/tools/yaml2obj/ELF/strtab-implicit-sections.yaml
49

Could you use -D to avoid needing a separate YAML block here from the one above?

82–83

Should we also check .shstrtab and .dynstr here? Same below.

126

Could you fold this into the above YAML? Same goes below.

201–202

Sounds like we need a test for where the "Size" is less than the content size.

grimar updated this revision to Diff 301574.Oct 29 2020, 4:47 AM
grimar marked 4 inline comments as done.
  • Addressed review comments.
This revision is now accepted and ready to land.Oct 29 2020, 5:00 AM