This is an archive of the discontinued LLVM Phabricator instance.

Add NetBSD support in platform_interceptors.h
ClosedPublic

Authored by krytarowski on Jul 16 2017, 5:16 PM.

Details

Summary

Introduce SI_NETBSD for NetBSD.

Add NetBSD support for appropriate SANITIZER_INTERCEPT_*.

Part of the code inspired by the original work on libsanitizer in GCC 5.4 by Christos Zoulas.

Sponsored by <The NetBSD Foundation>

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski created this revision.Jul 16 2017, 5:16 PM

Whitespace.

vitalybuka added inline comments.Jul 17 2017, 12:03 PM
lib/sanitizer_common/sanitizer_platform_interceptors.h
255–256

why netbsd does not care about (SANITIZER_WORDSIZE == 64)

krytarowski added inline comments.Jul 17 2017, 12:07 PM
lib/sanitizer_common/sanitizer_platform_interceptors.h
255–256

I don't understand the condition for SANITIZER_WORDSIZE == 64 here. shmctl(2) is available for all 32 and 64-bit platforms.

vitalybuka accepted this revision.Jul 17 2017, 12:48 PM
This revision is now accepted and ready to land.Jul 17 2017, 12:48 PM
krytarowski closed this revision.Jul 17 2017, 1:49 PM