aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorMariusz Borsa <m_borsa@apple.com>2022-06-07 16:15:20 -0700
committerMariusz Borsa <m_borsa@apple.com>2022-06-09 12:51:34 -0700
commit6d890a0fb8b1962cf7b58e9e16ff4545f1f2b84f (patch)
treebf8458d67a086a58581a45adf11f9ee5413a6033 /llvm/lib/Object/COFFObjectFile.cpp
parent353324eb1458f56e11ff63d820ff78ea287f3bf3 (diff)
downloadllvm-6d890a0fb8b1962cf7b58e9e16ff4545f1f2b84f.zip
llvm-6d890a0fb8b1962cf7b58e9e16ff4545f1f2b84f.tar.gz
llvm-6d890a0fb8b1962cf7b58e9e16ff4545f1f2b84f.tar.bz2
[Sanitizers] Cleanup handling of stat64/statfs64
There are differences in handling of stat64/statfs64 calls by sanitizers between Linux and macOS. Versions of macOS starting with 10.6 drop the stat64/statfs64 APIs completely, relying on the linker to redirect stat/statfs to the appropriate 64 bit versions. Emitting variables needed by sanitizers is thus controlled by convoluted sets of conditions, involving Linux, IOS, macOS and Android, sprinkled around files. This change adresses it, allowing to specify presence/absence of stat64/statfs64 for each platform, in a single location. Also, it adresses the Android case which handles stat64, but not statfs64. Adding Vitaly as a reviewer since he seems to be actively working on sanitizers, perhaps can comment on the Android bit Differential Revision: https://reviews.llvm.org/D127343
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions