summaryrefslogtreecommitdiff
path: root/rts/LinkerInternals.h
diff options
context:
space:
mode:
authorCheng Shao <astrohavoc@gmail.com>2022-10-22 18:38:05 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-11 00:26:55 -0500
commitd2d6dfd271b442891b2384203c59d72c7caca5b0 (patch)
tree4474ad8d8d339f5bcd6db44b0a034306fe427f39 /rts/LinkerInternals.h
parentc0ba1547ca4cd16735c7e375b71d6ea6737387de (diff)
downloadhaskell-d2d6dfd271b442891b2384203c59d72c7caca5b0.tar.gz
rts: wasm32 placeholder linker
This patch adds minimal placeholder linker logic for wasm32, just enough to unblock compiling rts on wasm32. RTS linker functionality is not properly implemented yet for wasm32.
Diffstat (limited to 'rts/LinkerInternals.h')
-rw-r--r--rts/LinkerInternals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h
index bafd7f0543..8982318b2a 100644
--- a/rts/LinkerInternals.h
+++ b/rts/LinkerInternals.h
@@ -29,6 +29,8 @@ void printLoadedObjects(void);
# define OBJFORMAT_PEi386
#elif defined(darwin_HOST_OS) || defined(ios_HOST_OS)
# define OBJFORMAT_MACHO
+#elif defined(wasm32_HOST_ARCH)
+# define OBJFORMAT_WASM32
#endif
typedef void SymbolAddr;
@@ -66,6 +68,8 @@ typedef enum _SymType {
# include "linker/PEi386Types.h"
#elif defined(OBJFORMAT_MACHO)
# include "linker/MachOTypes.h"
+#elif defined(OBJFORMAT_WASM32)
+# include "linker/Wasm32Types.h"
#else
# error "Unknown OBJECT_FORMAT for HOST_OS"
#endif