This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj][test] - Improve testing in hash-table.test
ClosedPublic

Authored by grimar on Oct 5 2020, 2:31 AM.

Details

Summary

This makes tests stricter and adds cases to verify what
we do when:

  1. there is no DT_HASH tag (but there is a SHT_HASH section in sections header)
  2. the sh_entsize of the SHT_HASH section is not equal to 4.

Diff Detail

Event Timeline

grimar created this revision.Oct 5 2020, 2:31 AM
Herald added a project: Restricted Project. · View Herald Transcript
grimar requested review of this revision.Oct 5 2020, 2:31 AM
grimar edited the summary of this revision. (Show Details)
jhenderson accepted this revision.Oct 8 2020, 1:44 AM

LGTM, with or without suggestion.

llvm/test/tools/llvm-readobj/ELF/hash-table.test
84

Maybe worth making this false by default?

This revision is now accepted and ready to land.Oct 8 2020, 1:44 AM
This revision was automatically updated to reflect the committed changes.
grimar marked an inline comment as done.