罗勇刚(Yonggang Luo) via llvm-dev
2020-Oct-10 19:21 UTC
[llvm-dev] I am trying to implement a c runtime in rust for msvc/windows.
But I don't know how to implement __GSHandlerCheck __security_check_cookie __security_cookie when using msvc to compiling debug code. Who knows how to implement these three functions or possible alternatives. -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201011/1627bfd8/attachment.html>
Gleb Popov via llvm-dev
2020-Oct-10 19:44 UTC
[llvm-dev] I am trying to implement a c runtime in rust for msvc/windows.
On Sat, Oct 10, 2020 at 11:21 PM 罗勇刚(Yonggang Luo) via llvm-dev < llvm-dev at lists.llvm.org> wrote:> But I don't know how to implement > __GSHandlerCheck > __security_check_cookie > __security_cookie > > when using msvc to compiling debug code. > > Who knows how to implement these three functions or possible alternatives. >How fortunately I've been passing by and stumbled upon this thread. Here is my implementation: uintptr_t __security_cookie = 0xAABBCCDD; void __fastcall __security_check_cookie(uintptr_t cookie) { if (cookie != __security_cookie) __debugbreak(); } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201010/a408b6d4/attachment.html>
Reid Kleckner via llvm-dev
2020-Oct-12 17:27 UTC
[llvm-dev] I am trying to implement a c runtime in rust for msvc/windows.
I think MSVC implements most of these in assembly. I'm not sure they all conform to any standard calling convention. On Sat, Oct 10, 2020 at 12:22 PM 罗勇刚(Yonggang Luo) via llvm-dev < llvm-dev at lists.llvm.org> wrote:> But I don't know how to implement > __GSHandlerCheck > __security_check_cookie > __security_cookie > > when using msvc to compiling debug code. > > Who knows how to implement these three functions or possible alternatives. > > -- > 此致 > 礼 > 罗勇刚 > Yours > sincerely, > Yonggang Luo > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201012/b81f12e2/attachment.html>