[PATCH] D59521: [WebAssembly] Define the signature for __stack_chk_fail
Dan Gohman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 16:42:53 PDT 2019
sunfish created this revision.
sunfish added a reviewer: sbc100.
Herald added subscribers: aheejin, jgravelle-google, dschuff.
Herald added a project: LLVM.
The WebAssembly backend needs to know the signatures of all runtime libcall functions. This adds the signature for `__stack_chk_fail` which was previously missing.
Repository:
rL LLVM
https://reviews.llvm.org/D59521
Files:
lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
Index: lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
===================================================================
--- lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
+++ lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
@@ -309,6 +309,9 @@
Table[RTLIB::MEMSET] = iPTR_func_iPTR_i32_iPTR;
Table[RTLIB::MEMMOVE] = iPTR_func_iPTR_iPTR_iPTR;
+ // __stack_chk_fail
+ Table[RTLIB::STACKPROTECTOR_CHECK_FAIL] = func;
+
// Element-wise Atomic memory
// TODO: Fix these when we implement atomic support
Table[RTLIB::MEMCPY_ELEMENT_UNORDERED_ATOMIC_1] = unsupported;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59521.191208.patch
Type: text/x-patch
Size: 642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190318/ecec9f13/attachment.bin>
More information about the llvm-commits
mailing list