[libc-commits] [libc] [libc] Simple __stack_chk_guard implementation (PR #78804)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Jan 22 09:01:33 PST 2024


================
@@ -19,6 +19,7 @@ set(TARGET_LIBC_ENTRYPOINTS
 
     # compiler entrypoints (no corresponding header)
     libc.src.compiler.__stack_chk_fail
+    libc.src.compiler.__stack_chk_guard
----------------
nickdesaulniers wrote:

I think the baremetal impl in this PR is fine.

For the linux target, we need to do more research because I'm quite sure some architectures use TLS for the canary.

https://github.com/llvm/llvm-project/pull/78804


More information about the libc-commits mailing list