forked from OSchip/llvm-project
25 lines
721 B
Plaintext
25 lines
721 B
Plaintext
## Test writing stub ELF from IFS and read stub ELF to regenerate IFS.
|
|
|
|
# RUN: llvm-ifs --output-elf=%t.elf64l --arch=x86_64 --bitwidth=64 --endianness=little %s
|
|
# RUN: llvm-ifs --output-ifs=- --strip-ifs-target %t.elf64l | FileCheck %s
|
|
|
|
--- !ifs-v1
|
|
IfsVersion: 3.0
|
|
NeededLibs:
|
|
- libc.so.6
|
|
Symbols:
|
|
- { Name: bar, Type: Object, Size: 42 }
|
|
- { Name: baz, Type: TLS, Size: 3 }
|
|
- { Name: plus, Type: Func }
|
|
...
|
|
|
|
# CHECK: --- !ifs-v1
|
|
# CHECK-NEXT: IfsVersion: 3.0
|
|
# CHECK-NEXT: NeededLibs:
|
|
# CHECK-NEXT: - libc.so.6
|
|
# CHECK-NEXT: Symbols:
|
|
# CHECK-NEXT: - { Name: bar, Type: Object, Size: 42 }
|
|
# CHECK-NEXT: - { Name: baz, Type: TLS, Size: 3 }
|
|
# CHECK-NEXT: - { Name: plus, Type: Func }
|
|
# CHECK-NEXT: ...
|