[libc-commits] [libc] [libc] fix issues around stack protector (PR #74567)

via libc-commits libc-commits at lists.llvm.org
Wed Dec 6 11:26:24 PST 2023


================
@@ -193,6 +193,8 @@ __attribute__((noinline)) static void do_start() {
   LIBC_NAMESPACE::main_thread_attrib.atexit_callback_mgr =
       LIBC_NAMESPACE::internal::get_thread_atexit_callback_mgr();
 
+  LIBC_NAMESPACE::atexit(
----------------
michaelrj-google wrote:

please add a comment here (and in the other startup code) mentioning that this `atexit` call needs to be the first one.

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


More information about the libc-commits mailing list