Skip to content

Commit

Permalink
abort_exit OK
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Jul 6, 2024
1 parent 65f1cae commit 7d98e13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ def JSystemLib(lib_name, objects):
"cflags": cflags_runtime,
"host": False,
"objects": [
Object(NonMatching, "PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/abort_exit.c"),
Object(Matching, "PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/abort_exit.c"),
Object(NonMatching, "PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/alloc.c", extra_cflags=["-inline noauto"]),
Object(Matching, "PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/errno.c"),
Object(Matching, "PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/ansi_files.c"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "critical_regions.h"
#include "stddef.h"

extern void (*__destroy_global_chain_reference[])(void);
extern void (*_dtors[])(void);

static void (*__atexit_funcs[64])(void);

Expand All @@ -21,7 +21,7 @@ void exit(int status) {
if (!__aborting) {
__destroy_global_chain();

dtor = __destroy_global_chain_reference;
dtor = _dtors;
while (*dtor != NULL) {
(*dtor)();
dtor++;
Expand Down

0 comments on commit 7d98e13

Please sign in to comment.