[PATCH] D73976: [compiler-rt] fix OpenBSD and Solaris build with sigaltstack interception

Igor Sugak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 4 15:10:05 PST 2020


sugak updated this revision to Diff 242439.
sugak retitled this revision from "[compiler-rt] fix NetBSD and FreeBSD build with sigaltstack interception" to "[compiler-rt] fix OpenBSD and Solaris build with sigaltstack interception".
sugak edited the summary of this revision.
sugak edited reviewers, added: eugenis; removed: mgorny, krytarowski.
sugak set the repository for this revision to rG LLVM Github Monorepo.
sugak added a comment.
Herald added a subscriber: fedor.sergeev.

Rebase


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73976/new/

https://reviews.llvm.org/D73976

Files:
  compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_openbsd.cpp
  compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_openbsd.h
  compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.cpp
  compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.h


Index: compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.h
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.h
+++ compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.h
@@ -38,6 +38,7 @@
 extern unsigned struct_tms_sz;
 extern unsigned struct_itimerspec_sz;
 extern unsigned struct_sigevent_sz;
+extern unsigned struct_stack_t_sz;
 extern unsigned struct_sched_param_sz;
 extern unsigned struct_statfs64_sz;
 extern unsigned struct_statfs_sz;
Index: compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_solaris.cpp
@@ -72,6 +72,7 @@
   unsigned struct_group_sz = sizeof(struct group);
   unsigned siginfo_t_sz = sizeof(siginfo_t);
   unsigned struct_sigaction_sz = sizeof(struct sigaction);
+  unsigned struct_stack_t_sz = sizeof(stack_t);
   unsigned struct_itimerval_sz = sizeof(struct itimerval);
   unsigned pthread_t_sz = sizeof(pthread_t);
   unsigned pthread_mutex_t_sz = sizeof(pthread_mutex_t);
Index: compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_openbsd.h
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_openbsd.h
+++ compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_openbsd.h
@@ -50,6 +50,7 @@
 extern unsigned struct_tms_sz;
 extern unsigned struct_itimerspec_sz;
 extern unsigned struct_sigevent_sz;
+extern unsigned struct_stack_t_sz;
 extern unsigned struct_statfs_sz;
 extern unsigned struct_sockaddr_sz;
 
Index: compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_openbsd.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_openbsd.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_openbsd.cpp
@@ -72,6 +72,7 @@
 unsigned struct_group_sz = sizeof(struct group);
 unsigned siginfo_t_sz = sizeof(siginfo_t);
 unsigned struct_sigaction_sz = sizeof(struct sigaction);
+unsigned struct_stack_t_sz = sizeof(stack_t);
 unsigned struct_itimerval_sz = sizeof(struct itimerval);
 unsigned pthread_t_sz = sizeof(pthread_t);
 unsigned pthread_mutex_t_sz = sizeof(pthread_mutex_t);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73976.242439.patch
Type: text/x-patch
Size: 2446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200204/656aab8a/attachment.bin>


More information about the llvm-commits mailing list