diff options
| author | Meco Man <[email protected]> | 2021-02-20 11:31:58 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-02-20 11:31:58 +0800 |
| commit | eaa3454bbece542d43b9470f7bb65198ee395d75 (patch) | |
| tree | b04555dcc17e2301250c32edb5aca5d5813b254b /components/libc/compilers/newlib | |
| parent | 8ea33c2101cdc8d8d8a5f94479acca310fbbfb75 (diff) | |
优化abort函数
Diffstat (limited to 'components/libc/compilers/newlib')
| -rw-r--r-- | components/libc/compilers/newlib/syscalls.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/components/libc/compilers/newlib/syscalls.c b/components/libc/compilers/newlib/syscalls.c index 76300f76b2..916922a7fe 100644 --- a/components/libc/compilers/newlib/syscalls.c +++ b/components/libc/compilers/newlib/syscalls.c @@ -283,8 +283,8 @@ _free_r (struct _reent *ptr, void *addr) rt_free (addr); } -void -exit (int status) +__attribute__ ((noreturn)) void +_exit (int status) { extern void __rt_libc_exit(int status); __rt_libc_exit(status); @@ -303,13 +303,6 @@ void __libc_init_array(void) /* we not use __libc init_aray to initialize C++ objects */ } -void abort(void) -{ - extern void __rt_libc_abort(void); - __rt_libc_abort(); - while(1); -} - uid_t getuid(void) { return 0; |
