[libc] restored original no_stack_protector syntax (#94005)
forward fix for #93620 -GCC doesn't recognize [[clang:: ']] prefix, so restored the original __attribute__ syntax
This commit is contained in:
parent
e79c080655
commit
435e5c10b0
@ -15,9 +15,9 @@ namespace LIBC_NAMESPACE::internal {
|
|||||||
// mark as no_stack_protector for x86 since TLS can be torn down before calling
|
// mark as no_stack_protector for x86 since TLS can be torn down before calling
|
||||||
// exit so that the stack protector canary cannot be loaded.
|
// exit so that the stack protector canary cannot be loaded.
|
||||||
#ifdef LIBC_TARGET_ARCH_IS_X86
|
#ifdef LIBC_TARGET_ARCH_IS_X86
|
||||||
[[clang::no_stack_protector]]
|
__attribute__((no_stack_protector))
|
||||||
#endif
|
#endif
|
||||||
[[noreturn]] void
|
__attribute__((noreturn)) void
|
||||||
exit(int status) {
|
exit(int status) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
LIBC_NAMESPACE::syscall_impl<long>(SYS_exit_group, status);
|
LIBC_NAMESPACE::syscall_impl<long>(SYS_exit_group, status);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user