diff options
author | Kamil Rytarowski <n54@gmx.com> | 2017-12-06 21:32:57 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2017-12-06 21:32:57 +0000 |
commit | bf228b9200ebfb6448ed5cc2cd9f5dc6421c40bb (patch) | |
tree | d65cc6698352fc6b4d816f3242ec241fe4be38ab /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | 64533cf63074cabcb088d36b274c2aedd16c5612 (diff) | |
download | llvm-bf228b9200ebfb6448ed5cc2cd9f5dc6421c40bb.zip llvm-bf228b9200ebfb6448ed5cc2cd9f5dc6421c40bb.tar.gz llvm-bf228b9200ebfb6448ed5cc2cd9f5dc6421c40bb.tar.bz2 |
Handle NetBSD symbol renaming in msan_interceptors.cc
Summary:
NetBSD renames symbols for historical and compat reasons.
Add required symbol renames in sanitizer_common_interceptors.inc:
- gettimeofday -> __gettimeofday50
- getrusage -> __getrusage50
- shmctl -> __shmctl50
Additionally handle sigaction symbol mangling.
Rename the function symbol in the file to SIGACTION_SYMNAME and define
it as __sigaction14 for NetBSD and sigaction for !NetBSD. We cannot use
simple renaming with the proprocessor, as there are valid fields named
sigaction and they must be left intact.
Sponsored by <The NetBSD Foundation>
Reviewers: joerg, eugenis, vitalybuka, dvyukov
Reviewed By: vitalybuka
Subscribers: kubamracek, llvm-commits, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D40766
llvm-svn: 319966
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions