1 ## Test writing tbe with stripped target information.
3 # RUN: llvm-ifs --input-format=ELF --strip-ifs-target --output-ifs=- %p/Inputs/sysv_hash.so | FileCheck %s --check-prefix=NOTARGET
4 # RUN: llvm-ifs --input-format=ELF --strip-ifs-arch --strip-ifs-endianness --strip-ifs-bitwidth --output-ifs=- %p/Inputs/sysv_hash.so | FileCheck %s --check-prefix=NOTARGET
5 # RUN: llvm-ifs --input-format=ELF --strip-ifs-arch --output-ifs=- %p/Inputs/sysv_hash.so | FileCheck %s -DELFTARGET="ObjectFormat: ELF, Endianness: little, BitWidth: 64" --check-prefix=CHECK
6 # RUN: llvm-ifs --input-format=ELF --strip-ifs-endianness --output-ifs=- %p/Inputs/sysv_hash.so | FileCheck %s -DELFTARGET="ObjectFormat: ELF, Arch: x86_64, BitWidth: 64" --check-prefix=CHECK
7 # RUN: llvm-ifs --input-format=ELF --strip-ifs-bitwidth --output-ifs=- %p/Inputs/sysv_hash.so | FileCheck %s -DELFTARGET="ObjectFormat: ELF, Arch: x86_64, Endianness: little" --check-prefix=CHECK
11 # CHECK-NEXT: IfsVersion: 3.0
12 # CHECK-NEXT: SoName: libsomething.so
13 # CHECK-NEXT: Target: { [[ELFTARGET]] }
14 # CHECK-NEXT: NeededLibs:
15 # CHECK-NEXT: - libm.so.6
16 # CHECK-NEXT: - libc.so.6
17 # CHECK-NEXT: - ld-linux-x86-64.so.2
18 # CHECK-NEXT: Symbols:
20 # NOTARGET: --- !ifs-v1
21 # NOTARGET-NEXT: IfsVersion: 3.0
22 # NOTARGET-NEXT: SoName: libsomething.so
23 # NOTARGET-NEXT: NeededLibs:
24 # NOTARGET-NEXT: - libm.so.6
25 # NOTARGET-NEXT: - libc.so.6
26 # NOTARGET-NEXT: - ld-linux-x86-64.so.2
27 # NOTARGET-NEXT: Symbols: