1 ## Test writing stub ELF from IFS and read stub ELF to regenerate IFS.
3 # RUN: llvm-ifs --output-elf=%t.elf64l --arch=x86_64 --bitwidth=64 --endianness=little %s
4 # RUN: llvm-ifs --output-ifs=- --strip-ifs-target %t.elf64l | FileCheck %s
11 - { Name: bar, Type: Object, Size: 42 }
12 - { Name: baz, Type: TLS, Size: 3 }
13 - { Name: plus, Type: Func }
17 # CHECK-NEXT: IfsVersion: 3.0
18 # CHECK-NEXT: NeededLibs:
19 # CHECK-NEXT: - libc.so.6
20 # CHECK-NEXT: Symbols:
21 # CHECK-NEXT: - { Name: bar, Type: Object, Size: 42 }
22 # CHECK-NEXT: - { Name: baz, Type: TLS, Size: 3 }
23 # CHECK-NEXT: - { Name: plus, Type: Func }