[PATCH] D49152: SafeStack: Add builtins to read unsafe stack top/bottom
Vlad Tsyrklevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 13 12:53:41 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT337037: SafeStack: Add builtins to read unsafe stack top/bottom (authored by vlad.tsyrklevich, committed by ).
Herald added a subscriber: Sanitizers.
Changed prior to commit:
https://reviews.llvm.org/D49152?vs=154874&id=155463#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D49152
Files:
lib/safestack/safestack.cc
Index: lib/safestack/safestack.cc
===================================================================
--- lib/safestack/safestack.cc
+++ lib/safestack/safestack.cc
@@ -257,11 +257,20 @@
#endif
extern "C"
- __attribute__((visibility("default"))) void *__get_unsafe_stack_start() {
+ __attribute__((visibility("default"))) void *__get_unsafe_stack_bottom() {
return unsafe_stack_start;
}
extern "C"
+ __attribute__((visibility("default"))) void *__get_unsafe_stack_top() {
+ return (char*)unsafe_stack_start + unsafe_stack_size;
+}
+
+extern "C"
+ __attribute__((visibility("default"), alias("__get_unsafe_stack_bottom")))
+ void *__get_unsafe_stack_start();
+
+extern "C"
__attribute__((visibility("default"))) void *__get_unsafe_stack_ptr() {
return __safestack_unsafe_stack_ptr;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49152.155463.patch
Type: text/x-patch
Size: 818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180713/b46c4aa3/attachment.bin>
More information about the llvm-commits
mailing list