xref: /llvm-project/llvm/test/tools/llvm-objcopy/ELF/response-file.test (revision c45fd0cad428f531c30f0629852aab2fcebe7b47)
1*c45fd0caSMichael Pozulp## Check that we support response files.
2*c45fd0caSMichael Pozulp# RUN: yaml2obj %s -o %t.o
3*c45fd0caSMichael Pozulp# RUN: echo "--strip-debug %t.o" > %t-response
4*c45fd0caSMichael Pozulp# RUN: llvm-objcopy @%t-response %t2.o
5*c45fd0caSMichael Pozulp# RUN: llvm-strip @%t-response
6*c45fd0caSMichael Pozulp
7*c45fd0caSMichael Pozulp# RUN: llvm-readobj -S %t.o | FileCheck %s
8*c45fd0caSMichael Pozulp# RUN: cmp %t.o %t2.o
9*c45fd0caSMichael Pozulp
10*c45fd0caSMichael Pozulp# CHECK-NOT: .debug_foo
11*c45fd0caSMichael Pozulp
12*c45fd0caSMichael Pozulp--- !ELF
13*c45fd0caSMichael PozulpFileHeader:
14*c45fd0caSMichael Pozulp  Class:   ELFCLASS64
15*c45fd0caSMichael Pozulp  Data:    ELFDATA2LSB
16*c45fd0caSMichael Pozulp  Type:    ET_EXEC
17*c45fd0caSMichael Pozulp  Machine: EM_X86_64
18*c45fd0caSMichael PozulpSections:
19*c45fd0caSMichael Pozulp  - Name: .debug_foo
20*c45fd0caSMichael Pozulp    Type: SHT_PROGBITS
21