[llvm-objcopy][test] Fix test that could have passed spuriously
authorJames Henderson <james.henderson@sony.com>
Thu, 25 Feb 2021 15:50:48 +0000 (15:50 +0000)
committerJames Henderson <james.henderson@sony.com>
Fri, 5 Mar 2021 08:57:39 +0000 (08:57 +0000)
commit47c343d7685f4ce9d8013c2e7ed3e30869875f4d
treefb858ac5abc85ddfc5aa16136a5a0e0a8325e4bc
parent0c5bfe6bb82b64ed5c3f0823c042ffa715c5335d
[llvm-objcopy][test] Fix test that could have passed spuriously

The test was showing that when --strip-unneeded is specified for an
executable, all the symbols are stripped. However, the set of symbols
used in the test would be stripped by --strip-unneeded for an ET_REL
object too. Fix this by adding additional symbols that aren't normally
stripped by --strip-unneeded.

Reviewed by: MaskRay

Differential Revision: https://reviews.llvm.org/D97664
llvm/test/tools/llvm-objcopy/ELF/strip-unneeded-all-symbols.test