llvm-project/llvm/test/tools/llvm-ifs/strip-size.test
Alex Brachet a74d9e74e5 [ifs] Add --strip-size flag
st_size may not be of importance to the abi if you are not using
copy relocations. This is helpful when you want to check the abi
of a shared object both when instrumented and not because asan
will increase the size of objects to include the redzone.

Differential revision: https://reviews.llvm.org/D124792
2022-05-14 18:50:20 +00:00

21 lines
519 B
Plaintext

# RUN: llvm-ifs %s --output-ifs - --strip-size | FileCheck %s
# CHECK: Symbols:
# CHECK-NEXT: - { Name: sym, Type: Object }
# CHECK-NEXT: ...
## Check that the size when emitting to elf defaults to 1.
# RUN: llvm-ifs %s --output-elf - --strip-size | llvm-ifs - --output-ifs - | \
# RUN: FileCheck %s --check-prefix=ELF
# ELF: Symbols:
# ELF-NEXT: - { Name: sym, Type: Object, Size: 0 }
# ELF-NEXT: ...
--- !ifs-v1
IfsVersion: 3.0
Target: x86_64
Symbols:
- { Name: sym, Type: Object, Size: 2 }
...