diff --git a/configure.py b/configure.py index 486a514be..c91605de0 100644 --- a/configure.py +++ b/configure.py @@ -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"), diff --git a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/abort_exit.c b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/abort_exit.c index 9b7081d51..8c59895b3 100644 --- a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/abort_exit.c +++ b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Src/abort_exit.c @@ -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); @@ -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++;