[ifs] Add --strip-size flag
authorAlex Brachet <abrachet@google.com>
Sat, 14 May 2022 17:23:47 +0000 (17:23 +0000)
committerAlex Brachet <abrachet@google.com>
Sat, 14 May 2022 17:25:50 +0000 (17:25 +0000)
commitb6b0fd6a940b7006ced344736decccffaa583b8a
tree8c9253c95c1293d5f400bfca87989b3ff97d3a11
parentbc90bbb75904d5381b1e7e16d81001c5ad304101
[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
llvm/docs/CommandGuide/llvm-ifs.rst
llvm/include/llvm/InterfaceStub/IFSStub.h
llvm/lib/InterfaceStub/ELFObjHandler.cpp
llvm/lib/InterfaceStub/IFSHandler.cpp
llvm/test/tools/llvm-ifs/strip-size.test [new file with mode: 0644]
llvm/tools/llvm-ifs/llvm-ifs.cpp
llvm/unittests/InterfaceStub/ELFYAMLTest.cpp