summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Sandberg Ericsson <adam@sandbergericsson.se>2021-04-28 20:11:52 +0100
committerBen Gamari <ben@smart-cactus.org>2021-05-12 20:27:10 -0400
commitaf213c06aca4b8da5157328f6cdd93d1f7f1ba88 (patch)
treebaac2606c864e532dc5138063db8252f9182c471
parent4a24635522790b0713de0f2eef4d1333fc8a4761 (diff)
downloadhaskell-af213c06aca4b8da5157328f6cdd93d1f7f1ba88.tar.gz
rts: export allocateWrite, freeWrite and markExec #19763
(cherry picked from commit 2d2985a79eec3d6ae9aee96b264c97c2b158f196)
-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) \