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

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Wed Dec 6 12:26:51 PST 2023


================
@@ -184,7 +184,7 @@ __attribute__((noinline)) static void do_start() {
     app.tls.align = phdr->p_align;
   }
 
-  LIBC_NAMESPACE::TLSDescriptor tls;
+  static LIBC_NAMESPACE::TLSDescriptor tls;
----------------
SchrodingerZhu wrote:

Unfortunately yes, the lambda expression to the `atexit` routine must be compatible with `void (*)()` hence capturing nothing.

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


More information about the libc-commits mailing list