1 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-objcopy --discard-all %t %t2
4 ## Verify that llvm-objcopy has not modified the input.
6 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
8 # RUN: llvm-objcopy -x %t %t3
9 ## Verify that llvm-objcopy has not modified the input.
13 ## Verify that llvm-strip modifies the symbol table the same way.
15 # RUN: llvm-strip --discard-all %t4
17 # RUN: llvm-strip -x %t
21 # CHECK-NEXT: Symbol {
22 # CHECK-NEXT: Name: _b (1)
24 # CHECK-NEXT: Type: Undef (0x0)
25 # CHECK-NEXT: Section: (0x0)
26 # CHECK-NEXT: RefType: UndefinedNonLazy (0x0)
27 # CHECK-NEXT: Flags [ (0x220)
28 # CHECK-NEXT: AltEntry (0x200)
29 # CHECK-NEXT: NoDeadStrip (0x20)
31 # CHECK-NEXT: Value: 0x4
39 cpusubtype: 0x00000003
60 addr: 0x0000000000000000
73 addr: 0x0000000000000000
83 - cmd: LC_BUILD_VERSION