Skip to content

Commit f591ed8

Browse files
[libc] fix startup
1 parent 7901be1 commit f591ed8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libc/startup/linux/do_start.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ void teardown_main_tls() { cleanup_tls(tls.addr, tls.size); }
131131
init_tls(tls);
132132
if (tls.size != 0 && !set_thread_ptr(tls.tp))
133133
syscall_impl<long>(SYS_exit, 1);
134+
135+
#if LIBC_COPT_SETJMP_ENABLE_FORTIFICATION
134136
jmpbuf::initialize();
137+
#endif
138+
135139
self.attrib = &main_thread_attrib;
136140
main_thread_attrib.atexit_callback_mgr =
137141
internal::get_thread_atexit_callback_mgr();

0 commit comments

Comments
 (0)