summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-03-24 10:07:02 +0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-29 17:25:49 -0400
commitdc6fa61c7e8ca54e4b9feb6d2db59c4b365de09d (patch)
tree87e80bf173a6e70b418564947f105c32244693b7
parent026a53e0ae5d9bd436e59ed681ab51c9fc3563c0 (diff)
downloadhaskell-dc6fa61c7e8ca54e4b9feb6d2db59c4b365de09d.tar.gz
[linker] SymbolExtras are only used on PPC and X86
-rw-r--r--rts/linker/SymbolExtras.c4
-rw-r--r--rts/linker/SymbolExtras.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/rts/linker/SymbolExtras.c b/rts/linker/SymbolExtras.c
index 7df5d7d3d6..f5147f8036 100644
--- a/rts/linker/SymbolExtras.c
+++ b/rts/linker/SymbolExtras.c
@@ -152,7 +152,7 @@ void ocProtectExtras(ObjectCode* oc)
}
-#if !defined(arm_HOST_ARCH)
+#if defined(powerpc_HOST_ARCH) || defined(x86_64_HOST_ARCH)
SymbolExtra* makeSymbolExtra( ObjectCode const* oc,
unsigned long symbolNumber,
unsigned long target )
@@ -189,6 +189,6 @@ SymbolExtra* makeSymbolExtra( ObjectCode const* oc,
return extra;
}
-#endif /* !arm_HOST_ARCH */
+#endif /* powerpc_HOST_ARCH || x86_64_HOST_ARCH */
#endif /* !x86_64_HOST_ARCH) || !mingw32_HOST_OS */
#endif // NEED_SYMBOL_EXTRAS
diff --git a/rts/linker/SymbolExtras.h b/rts/linker/SymbolExtras.h
index 6c05020b7b..9573856f87 100644
--- a/rts/linker/SymbolExtras.h
+++ b/rts/linker/SymbolExtras.h
@@ -16,13 +16,12 @@ SymbolExtra* makeArmSymbolExtra( ObjectCode const* oc,
unsigned long target,
bool fromThumb,
bool toThumb );
-#else
+#elif defined(powerpc_HOST_ARCH) || defined(x86_64_HOST_ARCH)
SymbolExtra* makeSymbolExtra( ObjectCode const* oc,
unsigned long symbolNumber,
unsigned long target );
-#endif /* arm_HOST_ARCH */
-
+#endif /* powerpc_HOST_ARCH || x86_64_HOST_ARCH */
#endif /* NEED_SYMBOL_EXTRAS */
#include "EndPrivate.h"