summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Sandberg Ericsson <adam@sandbergericsson.se>2021-04-28 20:11:52 +0100
committerAdam Sandberg Ericsson <adam@sandbergericsson.se>2021-04-28 20:38:37 +0100
commit568891446b542182cb3063f05ccc6728b49f8d52 (patch)
tree664adb2478f0b6baa7b99e03741aa56ed12900cc
parentd2399a46a01a6e46c831c19e797e656a0b8ca16d (diff)
downloadhaskell-568891446b542182cb3063f05ccc6728b49f8d52.tar.gz
rts: export allocateWrite, freeWrite and markExec #19763wip/adamse/T19763
-rw-r--r--rts/RtsSymbols.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c
index 3a9f568ed4..752b0f702d 100644
--- a/rts/RtsSymbols.c
+++ b/rts/RtsSymbols.c
@@ -548,11 +548,21 @@
#define RTS_PROF_SYMBOLS /* empty */
#endif
+#if RTS_LINKER_USE_MMAP
+#define RTS_LINKER_USE_MMAP_SYMBOLS \
+ SymI_HasProto(allocateWrite) \
+ SymI_HasProto(freeWrite) \
+ SymI_HasProto(markExec)
+#else
+#define RTS_LINKER_USE_MMAP_SYMBOLS /* empty */
+#endif
+
#define RTS_SYMBOLS \
Maybe_Stable_Names \
RTS_TICKY_SYMBOLS \
RTS_PROF_SYMBOLS \
RTS_LIBDW_SYMBOLS \
+ RTS_LINKER_USE_MMAP_SYMBOLS \
SymI_HasProto(StgReturn) \
SymI_HasProto(stg_gc_noregs) \
SymI_HasProto(stg_ret_v_info) \