This is an archive of the discontinued LLVM Phabricator instance.

Add NetBSD support in sanitizer_syscall_generic.inc
ClosedPublic

Authored by krytarowski on Aug 4 2017, 8:35 AM.

Details

Summary

This adds:

  • NetBSD specific aliases for renamed syscalls,
  • differentiate internal_syscall, internal_syscall64, internal_syscall_ptr as there are various types of syscalls on NetBSD.

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.Aug 4 2017, 8:35 AM

Improve patch for !NetBSD.

vitalybuka requested changes to this revision.Aug 4 2017, 2:40 PM
vitalybuka added inline comments.
lib/sanitizer_common/sanitizer_syscall_generic.inc
20

please move this into the next #if SANITIZER_NETBSD

This revision now requires changes to proceed.Aug 4 2017, 2:40 PM
krytarowski edited edge metadata.
  • Union of two NetBSD specific code sections.
vitalybuka accepted this revision.Aug 4 2017, 3:04 PM
This revision is now accepted and ready to land.Aug 4 2017, 3:04 PM
krytarowski closed this revision.Aug 4 2017, 3:24 PM