This is an archive of the discontinued LLVM Phabricator instance.

[obj2yaml] - SHT_REL*, SHT_DYNAMIC sections: add tests to document the behavior when sh_entsize is broken.
ClosedPublic

Authored by grimar on Mar 17 2020, 6:56 AM.

Details

Summary

We do not have tests that shows the current behavior.
It is useful for D76227 which changes the logic of dumping of EntSize fields.

Depends on D76281

Diff Detail

Event Timeline

MaskRay accepted this revision.Mar 17 2020, 8:20 AM
This revision is now accepted and ready to land.Mar 17 2020, 8:20 AM
jhenderson accepted this revision.Mar 19 2020, 3:00 AM

LGTM, with comment updates.

llvm/test/tools/obj2yaml/dynamic-section.test
254

Maybe just change this comment to "Test the behavior when ..." since presumably when you fix it, you'll just update the test case.

Optionally then add a FIXME saying how it should change.

llvm/test/tools/obj2yaml/rel-rela-section.yaml
32

Same as above.

llvm/test/tools/obj2yaml/relr-section.yaml
71

"dump a SHT_RELR" (or possibly "dump an SHT_RELR" - I'm not sure what the English grammar rules are here!)

This revision was automatically updated to reflect the committed changes.
grimar marked 3 inline comments as done.
Herald added a project: Restricted Project. · View Herald TranscriptMar 19 2020, 7:00 AM