diff --git a/llvm/test/tools/llvm-objcopy/ELF/strip-unneeded-all-symbols.test b/llvm/test/tools/llvm-objcopy/ELF/strip-unneeded-all-symbols.test --- a/llvm/test/tools/llvm-objcopy/ELF/strip-unneeded-all-symbols.test +++ b/llvm/test/tools/llvm-objcopy/ELF/strip-unneeded-all-symbols.test @@ -13,9 +13,17 @@ Data: ELFDATA2LSB Type: ET_EXEC Machine: EM_X86_64 +Sections: + - Name: .text + Type: SHT_PROGBITS Symbols: - - Name: bar - - Name: foo + - Name: local_undef + - Name: local_def + Section: .text + - Name: global_undef + Binding: STB_GLOBAL + - Name: global_def + Section: .text Binding: STB_GLOBAL # CHECK-NOT: .symtab