1 ## Test that --keep-section keeps a debug section when stripping.
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-objcopy --strip-all --keep-section=.debug_info %t %t2
4 # RUN: obj2yaml %t2 | FileCheck --implicit-check-not linking %s
7 # CHECK: Name: .debug_info
8 # CHECK-NEXT: Payload: DEADBEEF
10 ## Test that keep overrides an explicit removal.
11 # RUN: llvm-objcopy --remove-section=.debug_info --keep-section=.debug_info %t %t2
12 # RUN: obj2yaml %t2 | FileCheck %s --check-prefix=KEEP
15 # KEEP: Name: .debug_info