1 ## This test verifies that llvm-objcopy and llvm-strip do not remove
2 ## undefined symbols if --keep-undefined is specified.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-objcopy --strip-all --keep-undefined %t %t.stripped
6 # RUN: llvm-readobj --symbols %t.stripped | FileCheck %s
8 # RUN: llvm-strip --keep-undefined %t -o %t.stripped.2
9 # RUN: cmp %t.stripped %t.stripped.2
12 # CHECK-NEXT: Symbol {
13 # CHECK-NEXT: Name: _u (1)
15 # CHECK-NEXT: Type: Undef (0x0)
16 # CHECK-NEXT: Section: (0x0)
17 # CHECK-NEXT: RefType: UndefinedNonLazy (0x0)
18 # CHECK-NEXT: Flags [ (0x220)
19 # CHECK-NEXT: AltEntry (0x200)
20 # CHECK-NEXT: NoDeadStrip (0x20)
22 # CHECK-NEXT: Value: 0x4