summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/newlibc_exit.c
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2020-06-29 14:35:08 -0500
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-06-30 09:46:12 +0200
commit48dd7b8c2ef7056ff4730c378ccd7e9445b5e40f (patch)
treeb5ff28b0721d1208740d81f97c8e0e6fa0b4dbc7 /cpukit/libcsupport/src/newlibc_exit.c
parentChange version to RTEMS 6 (diff)
downloadrtems-48dd7b8c2ef7056ff4730c378ccd7e9445b5e40f.tar.bz2
score: Add CPU_USE_LIBC_INIT_FINI_ARRAY
This introduces the CPU_USE_LIBC_INIT_FINI_ARRAY define for use by CPU ports to determine which global constructor and destructor methods are used instead of placing architecture defines where they shouldn't be. Close #4018
Diffstat (limited to '')
-rw-r--r--cpukit/libcsupport/src/newlibc_exit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/newlibc_exit.c b/cpukit/libcsupport/src/newlibc_exit.c
index 650b692c74..d29214af3f 100644
--- a/cpukit/libcsupport/src/newlibc_exit.c
+++ b/cpukit/libcsupport/src/newlibc_exit.c
@@ -17,11 +17,8 @@
#include <stdio.h>
#include <unistd.h>
-/* FIXME: These defines are a blatant hack */
-
#if defined(__USE_INIT_FINI__)
- #if defined(__ARM_EABI__) || defined(__riscv) \
- || defined(__or1k__) || defined(__or1knd__)
+ #if CPU_USE_LIBC_INIT_FINI_ARRAY == TRUE
#define FINI_SYMBOL __libc_fini_array
#else
#define FINI_SYMBOL _fini