This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Add a test for --dyn-symbols when there are no dynamic symbols.
ClosedPublic

Authored by grimar on Jan 22 2020, 3:10 AM.

Details

Summary

It removes the Object/readobj-absent.test test and creates a one more case in
dyn-symbols.test we have.

Diff Detail

Event Timeline

grimar created this revision.Jan 22 2020, 3:10 AM
Herald added a project: Restricted Project. · View Herald Transcript
MaskRay added inline comments.Jan 22 2020, 11:42 AM
llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
297

| count 0

grimar updated this revision to Diff 239811.Jan 23 2020, 1:29 AM
grimar marked an inline comment as done.
grimar retitled this revision from [llvm-readobj] - Add a test for --dyn-symbols when there is no dynamic symbols. to [llvm-readobj] - Add a test for --dyn-symbols when there are no dynamic symbols..
  • Addressed review comments.
MaskRay added inline comments.Jan 23 2020, 9:12 PM
llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
294

does not have any dynamic symbols.

when the dynamic symbol table does not exist.

jhenderson added inline comments.Jan 24 2020, 12:41 AM
llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
294

That makes me think like we should have three different cases:

  1. Table does not exist.
  2. Table exists, but is size 0.
  3. Table exists, but only contains the null symbol.
grimar updated this revision to Diff 240154.Jan 24 2020, 4:04 AM
grimar marked 3 inline comments as done.
  • Addressed review comments.
llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
294

Done.

This revision is now accepted and ready to land.Jan 24 2020, 4:29 AM
This revision was automatically updated to reflect the committed changes.